---
title: "415 Unsupported Media Type"
canonical: "https://lemwatch.com/http-status-codes/415"
category: "client-error"
last_verified: "2026-12-01"
source: "https://lemwatch.com"
---

# HTTP 415 Unsupported Media Type

**TL;DR** — 415 almost always means the Content-Type header does not match what the API expects. Set it to the right value, most often application/json, and make sure the body really is in that format.

## What it means

HTTP 415 Unsupported Media Type means the server looked at the format of the data being sent and will not process it. The format is declared in the Content-Type header. The usual mistake is sending JSON without saying so, which leaves the default of plain text or form data, or declaring one format and sending another. It can also be returned for a Content-Encoding the server cannot decode.

## Common causes

- Sending JSON without a Content-Type: application/json header
- Sending form data to an endpoint that only accepts JSON, or the reverse
- Setting Content-Type by hand on a multipart upload and leaving out the boundary
- A charset or suffix on the header that a strict server does not recognise
- Compressing the body with a Content-Encoding the server does not support

## How to fix

- Check the API documentation for the Content-Type the endpoint expects
- Set the header explicitly: application/json for JSON, application/x-www-form-urlencoded for simple forms
- For file uploads, let the HTTP library set multipart/form-data and its boundary for you
- Confirm the body matches the header, for example that the JSON is serialised and not sent as an object's default text
- If you build the API, list the accepted types in the response, using the Accept-Post header

## SEO impact

415 applies to requests that send a body, which search engine crawlers do not do, so it does not normally affect indexing. It matters for forms and API calls that customers rely on.

## Monitoring tip

If a form or checkout starts failing with 415 after a release, a client library or a proxy has changed the Content-Type header. Compare a working request with a failing one.

**Related:** [400](https://lemwatch.com/http-status-codes/400.md), [406](https://lemwatch.com/http-status-codes/406.md), [422](https://lemwatch.com/http-status-codes/422.md)

_Canonical HTML page: https://lemwatch.com/http-status-codes/415_
