All HTTP status codes

HTTP 415 Unsupported Media Type

Client Error

The server refuses the request because the body's media type (Content-Type/Content-Encoding) isn't supported by the endpoint.

Defined in RFC 9110

Common causes

  • Sending form-encoded data where JSON is required (or vice versa)
  • Missing Content-Type so the server guesses wrong
  • Unsupported compression (Content-Encoding)

How to fix it

  1. Set the exact Content-Type the API documents (e.g. application/json; charset=utf-8)

  2. Match the serialization of the body to that header

  3. Remove unsupported Content-Encoding

Want to explore status codes interactively? Try the free HTTP Status Code Reference — search, categories and example responses, right in your browser.