Free auditStart free
GuideError · HTTP status codes

415 Unsupported Media Type

HTTP 415 means the server refuses the request body's format. Check Content-Type and Content-Encoding, send a type the endpoint accepts, and fix the server.

3 min
read
4
sources
Oct 22, 2026
updated
Scaplet Editorial Team
author
The short answer

HTTP 415 Unsupported Media Type means the server refuses the request because the content is in a format that method does not support on that resource. The cause is the request's Content-Type or Content-Encoding, or the data itself. Send a body type the endpoint accepts, and set the Content-Type header to match it.

  1. What a 415 means and who causes it
  2. How to get past a 415 as a visitor
  3. How to find and fix it as a developer
  4. What it does to SEO
30-second check

Where does your site stand?

Four quick questions, then a straight answer.

1/4Have you checked your own site for this?
Summarize this page withChatGPTClaudePerplexityGoogleAI Mode
01Common causes of a 415

What a 415 means and who causes it

RFC 9110 says the origin server is refusing to service the request "because the content is in a format not supported by this method on the target resource". The problem may come from the request's Content-Type or Content-Encoding, or from inspecting the data directly.
Cause

Content-Type header missing

Where to look
The request headers in DevTools or your HTTP client
Fix
Add a Content-Type that matches the body, such as application/json
Cause

Content-Type does not match the body

Where to look
Header says form data, body is JSON
Fix
Make the header describe the real body
Cause

Typo in the type or charset

Where to look
Strings like UTF8 instead of UTF-8
Fix
Use the exact registered spelling
Cause

Type the route does not accept

Where to look
The endpoint's docs or Accept-Post / Accept response header
Fix
Send a type the route supports, or enable it on the server
Cause

Unsupported Content-Encoding

Where to look
A compressed request body
Fix
Send the body uncompressed, or enable that encoding on the server

This is a request-side error: the client sent a body the endpoint will not take. It is not a crash, and retrying the same request will fail the same way. The server is working as configured; the mismatch is between what was sent and what the route accepts.

02Explained

How to get past a 415 as a visitor

A person browsing rarely sees a raw 415, because browsers build the request for them. If you see it after uploading a file, the site probably does not accept that file type. Convert the file to a common format the form lists, or try another file. If it happens on a normal page action, reload once and report it to the site owner with the time and what you did.
03How it works

How to find and fix it as a developer

Send JSON with an explicit type
curl -i -X POST https://example.com/comments \
  -H "Content-Type: application/json" \
  -d '{"user":"belgin","comment":"LGTM!"}'
Server response that names the accepted type
HTTP/1.1 415 Unsupported Media Type
Accept-Post: application/json; charset=UTF-8
Content-Length: 0
  1. 01

    Read the response headers

    RFC 9110 says a server can use the Accept response header to list the media types it would have accepted, or Accept-Encoding for content codings. MDN's examples show an Accept-Post header naming the required type.

  2. 02

    Compare with what you sent

    Open the failing request in DevTools or run it with curl -v. Check the Content-Type and Content-Encoding you actually sent, not what your code intended.

  3. 03

    Fix the client first

    Set the Content-Type header to match the body. MDN notes some servers are strict, and that sending UTF8 instead of UTF-8 for the charset may make the server consider the media type invalid.

  4. 04

    Then check the server

    If the client is right, confirm the route is configured to read that type, for example a JSON parser enabled for the path. Return the Accept-Post or Accept header so clients learn what is allowed.

04Explained

What it does to SEO

A 415 is a 4xx response. Google does not index URLs that return a 4xx status code, and drops already-indexed ones over time. A 415 normally appears on API or form endpoints that crawlers do not request with a body, so it rarely touches indexed pages. If a public page returns it, treat it as a bug and see 4xx errors and Google's documentation on how HTTP status codes affect its crawlers.
Questions

Asked a lot.

4 questions people ask next, answered from the sources on this page.

01What is return code 415?

It is the HTTP status for Unsupported Media Type. The server refused the request because the body's format, as given by Content-Type or Content-Encoding or found in the data, is not supported for that method and resource.

02How can I fix the 415 Unsupported Media Type error?

Set the Content-Type header to match the body you send, spell it exactly, and use a type the endpoint accepts. If the client is correct, enable that type on the server route.

03Is 415 the same as 400?

No. A 400 covers requests the server sees as malformed in general. A 415 is specific to the body's media type or content coding not being supported.

04Can the server tell me which types it accepts?

It can. RFC 9110 says the Accept response header can list accepted media types, and Accept-Encoding can list accepted content codings. Not every server sends them.

Sources · 4

Every fact, linked and dated.

Official docs first. The date is when we last opened each page.
  • rfc-editor.org
  • mozilla.org
  • iana.org
  • google.com
  1. 01RFC 9110: 415 Unsupported Media Type (Section 15.5.16)rfc-editor.org · checked 2026-10-25
  2. 02MDN: 415 Unsupported Media Typedeveloper.mozilla.org · checked 2026-10-25
  3. 03IANA HTTP Status Code Registryiana.org · checked 2026-10-25
  4. 04How HTTP status codes affect Google's crawlersdevelopers.google.com · checked 2026-10-25
Free · 2 minutes

Tools point. Agencies advise. This one ships.

Run the free audit, then approve the fixes. Every change can be undone.

Free, no card60 secondsNobody will call you
  • 46 fixes shipped without a ticket Brightpipe
  • 0→7 ChatGPT citations in six weeks Paylane