HTTP 415 Unsupported Media Type
What a 415 Unsupported Media Type response means, why it happens, and the fastest ways to fix it.
The server refuses the request because the payload format (Content-Type) isn't supported at this endpoint.
- Sending JSON without Content-Type: application/json.
- Sending text/json or form-encoded data to a JSON API.
- Missing charset or wrong multipart boundary.
- Set the exact Content-Type the API documents.
- Check the request body actually matches the declared type.
Notes
HTTP status codes are defined in RFC 9110 (which replaced RFC 7231). The first digit is the class: 1xx informational, 2xx success, 3xx redirection, 4xx client error, 5xx server error.
Same class: 400 · 401 · 403 · 404 · 405 · 408 · 409 · 410 · 412 · 413 · 418 · 422 · 425 · 429 · 431 · 451
All codes: HTTP status code reference
Frequently asked questions
What does HTTP 415 mean?
HTTP 415 Unsupported Media Type: The server refuses the request because the payload format (Content-Type) isn't supported at this endpoint.
How do I fix a 415 error?
Set the exact Content-Type the API documents. Check the request body actually matches the declared type.
Is a 415 my fault or the server's?
415 is a client error — the request itself needs to change, though server misconfiguration can also trigger it.