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

Add support for failing check on HTTP error responses #23

Merged
merged 1 commit into from
Aug 29, 2020
Merged

Add support for failing check on HTTP error responses #23

merged 1 commit into from
Aug 29, 2020

Conversation

AnandChowdhary
Copy link
Contributor

This PR fixes #22 by throwing an error when a server responds with a failing status code.

According to HTTP response status codes on MDN, 400 to 499 are client errors and 500 to 599 are server errors. In this PR, the status check is failed when such an HTTP status is responded with.

@joelwmale joelwmale merged commit aff8b23 into joelwmale:develop Aug 29, 2020
@joelwmale joelwmale mentioned this pull request Aug 29, 2020
joelwmale added a commit that referenced this pull request Aug 29, 2020
- Add support for failing check on HTTP error responses (#23) (@AnandChowdhary)
- Bump @types/node from 14.6.0 to 14.6.1 (#21)
@AnandChowdhary AnandChowdhary deleted the patch-1 branch August 29, 2020 07:58
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.

Check for response status
2 participants