{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://www.devtools.tools"},{"@type":"ListItem","position":2,"name":"HTTP Status Codes","item":"https://www.devtools.tools/http-status"},{"@type":"ListItem","position":3,"name":"415 Unsupported Media Type","item":"https://www.devtools.tools/http-status/415"}]}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.