site icon indicating copy to clipboard operation
site copied to clipboard

Handling of unaccepted/wrong content-type

Open FiV0 opened this issue 4 years ago • 1 comments

Currently specifying a bad content-type results in a server error. We could do two things to improve the dev experience:

  • Return a 406 Not Acceptable instead of a server error.
  • Include the error and irritating content-type in the response.

The same is probably true for content-language and content-encoding.

FiV0 avatar Dec 16 '21 16:12 FiV0

100% agree

malcolmsparks avatar Dec 17 '21 15:12 malcolmsparks