# 415 Unsupported Media Type

> HTTP 415 means the server refuses the request body

Canonical: https://scaplet.com/errors/http/415

Guide Error · HTTP status codes

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

415 4xx · Client error

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](#what-a-415-means-and-who-causes-it)
2. [How to get past a 415 as a visitor](#how-to-get-past-a-415-as-a-visitor)
3. [How to find and fix it as a developer](#how-to-find-and-fix-it-as-a-developer)
4. [What it does to SEO](#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 with [ChatGPT](https://chatgpt.com/?hints=search&q=Summarize%20https%3A%2F%2Fscaplet.com%2Ferrors%2Fhttp%2F415%20(%22415%20Unsupported%20Media%20Type%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.) [Claude](https://claude.ai/new?q=Summarize%20https%3A%2F%2Fscaplet.com%2Ferrors%2Fhttp%2F415%20(%22415%20Unsupported%20Media%20Type%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.) [Perplexity](https://www.perplexity.ai/search?q=Summarize%20https%3A%2F%2Fscaplet.com%2Ferrors%2Fhttp%2F415%20(%22415%20Unsupported%20Media%20Type%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.) [![Google](/logos/ai/google-color.svg)AI Mode](https://www.google.com/search?udm=50&q=Summarize%20https%3A%2F%2Fscaplet.com%2Ferrors%2Fhttp%2F415%20(%22415%20Unsupported%20Media%20Type%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.)

_01_Common 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.

_02_Explained

## 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.

_03_How 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
```

**415 versus 422 and 400**Use 415 when the format itself is unsupported. RFC 9110 says 422 applies when the server understands the content type and the syntax is correct but it cannot process the instructions, so 415 would be inappropriate there. See [422 Unprocessable Content](/errors/http/422) and [400 Bad Request](/errors/http/400).

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.

_04_Explained

## What it does to SEO

A 415 is a 4xx response. Google does not index URLs that return a 4xx [status code](/glossary/http-status-codes), 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](/seo-issues/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.

_01_ What 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.

_02_ How 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.

_03_ Is 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.

_04_ Can 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. 01 [RFC 9110: 415 Unsupported Media Type (Section 15.5.16)](https://www.rfc-editor.org/rfc/rfc9110.html) rfc-editor.org · checked 2026-10-25
2. 02 [MDN: 415 Unsupported Media Type](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status/415) developer.mozilla.org · checked 2026-10-25
3. 03 [IANA HTTP Status Code Registry](https://www.iana.org/assignments/http-status-codes/http-status-codes.xhtml) iana.org · checked 2026-10-25
4. 04 [How HTTP status codes affect Google's crawlers](https://developers.google.com/crawling/docs/troubleshooting/http-status-codes) developers.google.com · checked 2026-10-25

## Keep learning

[All errors](/errors)

[Learn 406 Not Acceptable HTTP status codes](/errors/http/406) [Related 4xx errors Status codes and links](/seo-issues/4xx-errors) [Read next 422 Unprocessable Content (Unprocessable Entity) HTTP status codes](/errors/http/422) [Do Run a free site audit Free, about two minutes](/site-audit)

Nearby in errors
[413 Payload Too Large in PHP uploads](/errors/http/413/php)

More in HTTP status codes
[HTTP redirect codes](/errors/http/http-redirect-codes) [HTTP status code list](/errors/http/http-status-code-list) [REST API status codes](/errors/http/rest-api-status-codes) [100 Continue](/errors/http/100) [101 Switching Protocols](/errors/http/101) [402 Payment Required](/errors/http/402) [403 Forbidden](/errors/http/403) [404 Not Found](/errors/http/404) [406 Not Acceptable](/errors/http/406) [411 Length Required](/errors/http/411) [413 Request Entity Too Large](/errors/http/413) [414 URI Too Long](/errors/http/414) [415 Unsupported Media Type](/errors/http/415) [416 Range Not Satisfiable](/errors/http/416) [417 Expectation Failed](/errors/http/417) [418 I'm a Teapot](/errors/http/418) [421 Misdirected Request](/errors/http/421) [422 Unprocessable Content (Unprocessable Entity)](/errors/http/422) [423 Locked](/errors/http/423) [424 Failed Dependency](/errors/http/424) [425 Too Early](/errors/http/425) [426 Upgrade Required](/errors/http/426) [428 Precondition Required](/errors/http/428) [429 Too Many Requests](/errors/http/429)

Terms on this page
[HTTP status codes](/glossary/http-status-codes)

Free · 2 minutes

## Tools point. Agencies advise. _This one ships._

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

[Audit my site free](/site-audit)

Free, no card 60 seconds Nobody will call you

- **46** fixes shipped without a ticket Brightpipe
- **0→7** ChatGPT citations in six weeks Paylane
