What is the most correct/meaningful HTTP status code to return when your web server cannot handles the incoming request because it does not understands what the Content-Type
of the incoming request body is?
Returning straight 400 seems like a bad idea since, according to Wikipedia:
e.g., malformed request syntax, invalid request message framing, or deceptive request routing
And we actually returns 400 when there are parsing errors or similar things for some content types like application/json
or some of the XML variants.
So is there an HTTP status code to indicate that we don't know how to process the request besides HTTP 400?