-
Notifications
You must be signed in to change notification settings - Fork 53
Add an option to only throw exception on 5XX error codes #100
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like this feature. Do you think it is a good idea (or overkill) to let the user provide a regex to decide when to throw an exception?
I think it's overkill, someone can still do it's own plugin for that, however handling 4XX responses is common (like you want the bad request for handling validations, or 404 so you know that this resource does not exist and can handle it properly, but 5XX responses are never wanted because client don't know how to respond to them) |
Like the idea. Is this PR ready? |
For me yes |
Great. Can you write some documentation as well? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CHANGELOG.md
Outdated
@@ -1,11 +1,15 @@ | |||
# Change Log | |||
|
|||
## Upcoming | |||
## 1.8 (unreleased) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
1.8.0?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i guess we can still add the .0 when we do the release
cf #77