HTTP 415 Unsupported Media Type — What It Means

What HTTP status code 415 Unsupported Media Type means, when servers return it, and how to handle it correctly.

Published September 24, 2026

HTTP 415 Unsupported Media Type means the server does not support the Content-Type of the request body.

What it means

For instance sending form data to an endpoint that expects JSON.

Common causes: Missing or wrong Content-Type; Sending XML to a JSON API; Unsupported file type.

On the wire

POST /api/users HTTP/1.1
HTTP/1.1 415 Unsupported Media Type
Content-Type: text/plain
A typical 415 exchange.

Practical examples

Test it from the shell

curl -i https://example.com/path   # look for HTTP 415

Handling 415 in code or config

curl -H 'Content-Type: application/json' -d '{"a":1}' https://api.example.com/users

How to fix it

Set the correct Content-Type header; Send data in a supported format; Check the API docs.

1. Reproduce: curl -i <url>
2. Confirm the status is 415
3. Apply the fix above and re-test

Common mistakes

  • Set the correct Content-Type header
  • Send data in a supported format
  • Ignoring the response headers that explain the details.

Key takeaways

  • 415 means Unsupported Media Type.
  • HTTP 415 Unsupported Media Type means the server does not support the Content-Type of the request body.
  • Read the response headers and logs for the exact cause.

FAQ

415 vs 400?

415 is about the media type; 400 is about malformed content.

Is 415 a client or server error?

It is a client error status code, in the 4xx class.

More HTTP articles