415 Unsupported Media Type

HTTP 415 Unsupported Media Type is a 4xx client error status. The server does not accept the format of the request body.

415Status code
4xxClient error
NoCacheable by default
RFC 9110 §15.5.16Defined in

Common causes

What to do

Set Content-Type: application/json (or what the API expects).

Example response

HTTP/1.1 415 Unsupported Media Type
Content-Type: application/problem+json

{"status":415,"title":"Unsupported Media Type"}

Returning 415 in code

Express   res.status(415).json({ … });
Flask     return jsonify(…), 415
PHP       http_response_code(415);
Go        w.WriteHeader(415)
nginx     return 415;

Other 4xx codes

Frequently asked questions

What does HTTP 415 mean?
The server does not accept the format of the request body.
Is 415 an error?
Yes. It is a client error: the request needs to change before retrying.
Does a 415 hurt SEO?
If search engines see it repeatedly on pages that should rank, those pages can be dropped from the index. Fix it quickly.