Zest.
4xx · Client error

HTTP 415 Unsupported Media Type

The server doesn't accept the Content-Type you sent.

Common causes and fixes

  • Check that Content-Type matches the body, for example application/json.

Example response

HTTP
HTTP/1.1 415 Unsupported Media Type
Content-Type: application/json; charset=utf-8

{ "error": "Unsupported Media Type" }

Look up the headers shown here in the HTTP headers reference.

Common questions

What does HTTP 415 mean?
Unsupported Media Type. The server doesn't accept the Content-Type you sent.
How do I fix a 415 error?
Check that Content-Type matches the body, for example application/json.
Is 415 an error?
Yes. 4xx codes are client errors: The request contains a mistake or can't be fulfilled as sent.

Other 4xx codes