Skip to content
4xx · Client Error

415 Unsupported Media Type

The server refuses the request because the body is in a format it does not support.

What it means

HTTP 415 Unsupported Media Type means the Content-Type of the request body is one the server or the target endpoint cannot handle. Where 406 is about what the client will accept back, 415 is about what the client sent up: the server looks at the payload's declared type and rejects it.

When it happens

It happens when an API expecting application/json receives XML or form-encoded data, when an upload's Content-Type is wrong or missing, or when a client posts a media type the endpoint was never built to parse.

How to fix it

  • Set the Content-Type header to a format the endpoint supports, such as application/json.
  • Encode the body to match the declared Content-Type.
  • Check the API documentation for the media types each endpoint accepts.

SEO impact

None for normal pages. It applies to request bodies, which crawlers do not send when fetching content.

Check it with Sitewell

Find out which of your URLs return 415

Paste a list of URLs and Sitewell checks the status code of every one at once — free and without signup.

Related codes

Related guides