415 Unsupported Media Type

The endpoint cannot process the request body's media type or encoding as supplied.

All HTTP status codes

What does HTTP 415 mean?

A valid JSON document sent under the wrong content type can fail before normal validation, as can a file upload presented as JSON. The header must describe the actual bytes; changing it without changing the body is not a conversion. Check which formats the endpoint accepts and whether an SDK or proxy changed serialization during a release.

An investigation example

Illustrative webhook investigation
Response: 415 Unsupported Media Type
Sender labels form-encoded bytes as application/json.
Action: correct serialization and the matching Content-Type together.
Verify: the endpoint parses the event and applies its normal authentication and validation checks.

Common causes

  • The body is form-encoded or multipart while the endpoint requires JSON.
  • Content-Type is missing, wrong or inconsistent with the actual body.
  • The server cannot decode the request's Content-Encoding.

Diagnose the response

Compare Content-Type, Content-Encoding and the actual body with the API's supported input contract.

  • Check the endpoint's supported input formats and compare them with Content-Type and the actual bytes. Fix both the header and body rather than relabelling invalid content.
  • Let the HTTP library construct multipart boundaries when uploading files. A manually set multipart Content-Type without a matching boundary can make the body unreadable.
  • Inspect compression support if Content-Encoding is present. Compare an uncompressed request before changing server decoding or proxy behaviour.

What it means for website monitoring

Inspect the failing submission rather than relying on a successful page fetch. Keep payload samples sanitised and retain enough header information to reproduce the format mismatch.

Reference