HTTP · Unsupported Media Type

HTTP Error Code 415

The request body format is not supported by the server.

warningLast verified 2026-11-08RFC 9110: HTTP Semantics
Quick answer

The request body format is not supported by the server.

Code415
ProductHTTP
Company / originIETF / IANA · International standard
CategoryProtocols & Standards
Platform / versionsHTTP/1.1, HTTP/2, HTTP/3 · All HTTP versions
Severitywarning
Official sourceRFC 9110: HTTP Semantics ↗
Last verified2026-11-08

What does HTTP error 415 mean?

HTTP 415 means the server does not accept the media type declared in the Content-Type header, or the body cannot be parsed as that type. A common example is sending JSON while the endpoint expects form data or XML.

Common causes

  • The Content-Type header is missing, wrong, or includes an unsupported charset.
  • The body is JSON but the endpoint only accepts form-encoded data.
  • A client library sends a default content type that the API does not support.

How to fix it

  1. Step 1

    Set Content-Type to the exact media type documented by the API.

  2. Step 2

    Encode the body in the matching format, including any required charset.

  3. Step 3

    If the API accepts multiple formats, confirm which one the endpoint expects for this operation.

When to escalate

Before you escalate: If the same status persists after you have checked the request, the server logs, and the upstream service, contact the API or hosting provider with the full response headers, request ID, timestamp, and a minimal reproduction.

Related codes

CodeNameWhat it means
400Bad RequestThe server cannot process the request because the syntax or parameters are invalid.
422Unprocessable ContentThe request is syntactically valid but fails semantic validation.
401UnauthorizedAuthentication is missing, expired, or invalid.
403ForbiddenThe server understood the request but refuses to authorize it.
404Not FoundThe requested resource does not exist at this URL.

Source & verification

This page was checked against RFC 9110: HTTP Semantics on 2026-11-08. The code, product, and platform fields are kept separate from the explanation so corrections can be made without changing the URL.

Open Error Codes is independent and not affiliated with IETF / IANA. Always confirm destructive or security-sensitive steps with the official documentation.