-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Improve error handling (HttpErrorHandler) #6171
Comments
This is not really relevant anymore, because in starting with 2.7 there is not |
|
This is a very very good point. I have/had various use cases where I want(ed) to know where an error comes from. Specially for client errors: Usually client errors (the 4xx range) originate from within actions methods where filters are processed already (like not found / bad request etc.). There is one exception however: When the server backend returns early because the request was too large (413 /
in that case the request will not be processed further, no filters will be called etc. Basically the Play filters/actions code will never be reached (given that netty is not Play). Long story short: There are definitely use cases where its good to know the origin of an request passed to an error handler (another use case: #8242 (comment)), therefore I am working on a pull request which adds a |
Pull request to track origins of errors: #10270 |
There has been a bit of discussion about error handling in Play, both online (#6153, #6116) and offline. I'm creating this issue to capture some of these discussions in one place.
From #6153:
From #6116:
Suggestion from @gmethvin:
The text was updated successfully, but these errors were encountered: