Skip to main content
apiguide.dev

HTTP 415 — Unsupported Media Type

The request payload media format is not supported by the server.

Status CodeHTTP 415
CategoryClient Error (4xx)
API Error Subtypes1 error schema
HTTP Headers1 header

What does HTTP status code 415 mean?

The 415 Unsupported Media Type status code indicates that the server rejects the request because the payload media format is not supported (e.g., XML payload sent to a JSON-only endpoint).

When to use it in APIs

Use 415 when checking the Content-Type header of incoming write requests. If your API requires application/json and the client sends text/xml, return a 415.

How it compares to other codes

  • 406 Not Acceptable: Refuses response formats based on Accept headers, whereas 415 refuses incoming request body formats.

Specific API Error Types for 415

Associated HTTP Headers

Related HTTP Status Codes