Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handle unsupported request content type (#3513)
* Handle unsupported request content type Return 415 Unsupported Media Type when the request decoder does not support the request content type. * Make linter happy * Do not wrap decode errors that are already service errors This makes it possible for the decoding code to return proper HTTP statuses depending on the name of error. As of this PR, this is only used to return 415 "Unsupported Media Type" when an unsupported content type is used to encode the request payload. * Refactor slightly to group error definitions
- Loading branch information