Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pass HTTP status code to TokenError #131

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

getsnoopy
Copy link

Previously, when generating error responses, TokenError was not
passed the HTTP status code that was passed to the error response
handler (parseErrorResponse). This resulted in every kind of error
being treated as a 500 Internal Server Error. This commit fixes
this by passing on the returned status code from the OAuth call.

Fixes #127

Previously, when generating error responses, TokenError was not
passed the HTTP status code that was passed to the error response
handler (parseErrorResponse). This resulted in every kind of error
being treated as a 500 Internal Server Error. This commit fixes
this by passing on the returned status code from the OAuth call.
@coveralls
Copy link

Coverage Status

Coverage remained the same at 100.0% when pulling 86692c1 on getsnoopy:pass-tokenerror-status into e20f26a on jaredhanson:master.

@getsnoopy
Copy link
Author

@jaredhanson This has been open for a while; could you take a look?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

TokenError should be passed the HTTP status code
2 participants