Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Tell why a request is bad for a 400 Bad Request response (#1575)
Motivation: It is sometimes hard for a client to know why a request is bad. Modifications: - Added short error messages to 400 Bad Request responses - Used `ProtocolViolationException` instead of `IllegalArgumentException` for bad requests. - Removed unnecessary validation of HTTP method in `HttpServerHandler`. Result: - User friendliness.
- Loading branch information
Showing
6 changed files
with
140 additions
and
111 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.