Permalink
Browse files

Fixes #86

  • Loading branch information...
1 parent 4b4e78e commit 891816ffd72e7eb6dfed7229cbcbf6421fa4bca1 @pksunkara committed Jan 22, 2014
View
0 README.md 100755 → 100644
No changes.
View

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
View
0 src/octonode.coffee 100755 → 100644
No changes.
View
3 src/octonode/client.coffee 100755 → 100644
@@ -99,8 +99,7 @@ class Client
body = JSON.parse(body || '{}')
catch err
return callback(err)
- return callback(new HttpError(body.message, res.statusCode, res.headers)) if body.message and res.statusCode is 422
- return callback(new HttpError(body.message, res.statusCode, res.headers)) if body.message and res.statusCode in [400, 401, 404]
+ return callback(new HttpError(body.message, res.statusCode, res.headers)) if body.message and res.statusCode in [400, 401, 404, 410, 422]
callback null, res.statusCode, body, res.headers
# Github api GET request
View
0 src/octonode/issue.coffee 100755 → 100644
No changes.
View
0 src/octonode/pr.coffee 100755 → 100644
No changes.

0 comments on commit 891816f

Please sign in to comment.