Add husky
Add tests for HttpError