Skip to content
Browse files

Fixes #92

  • Loading branch information...
1 parent 0b80d70 commit 70bb1f08e5e01342262c781d034ef22f7c62a9b1 @pksunkara committed Feb 1, 2014
Showing with 2 additions and 2 deletions.
  1. +1 −1 lib/octonode/client.js
  2. +1 −1 src/octonode/client.coffee
View
2 lib/octonode/client.js
@@ -158,7 +158,7 @@
err = _error;
return callback(err);
}
- if (body.message && ((_ref = res.statusCode) === 400 || _ref === 401 || _ref === 404 || _ref === 410 || _ref === 422)) {
+ if (body.message && ((_ref = res.statusCode) === 400 || _ref === 401 || _ref === 403 || _ref === 404 || _ref === 410 || _ref === 422)) {
return callback(new HttpError(body.message, res.statusCode, res.headers));
}
return callback(null, res.statusCode, body, res.headers);
View
2 src/octonode/client.coffee
@@ -113,7 +113,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 in [400, 401, 404, 410, 422]
+ return callback(new HttpError(body.message, res.statusCode, res.headers)) if body.message and res.statusCode in [400, 401, 403, 404, 410, 422]
callback null, res.statusCode, body, res.headers
# Github api GET request

0 comments on commit 70bb1f0

Please sign in to comment.
Something went wrong with that request. Please try again.