HTTP 4xx

415 Unsupported Media Type

The request body is in a format the server does not support, for example sending XML to a JSON-only API.

4xx Client errorCommonly seen

What causes it

  • A wrong or missing Content-Type header.

How to fix it

Set the correct Content-Type (often application/json) to match what the endpoint expects.

Example response

A typical raw HTTP response a client receives for a 415, with the headers this code is defined around.

HTTP/1.1 415 Unsupported Media Type
Content-Type: text/html; charset=utf-8

Know before your visitors do.

Sentinel checks your site around the clock from multiple regions and alerts you the moment it starts returning a 4xx error, so you can fix it before it costs you.