All HTTP status codes
HTTP 415 Unsupported Media Type
Client ErrorThe 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
Set the exact Content-Type the API documents (e.g. application/json; charset=utf-8)
Match the serialization of the body to that header
Remove unsupported Content-Encoding
Related status codes
Want to explore status codes interactively? Try the free HTTP Status Code Reference — search, categories and example responses, right in your browser.