The body is in a format the endpoint does not accept — usually a Content-Type mismatch.
Defined in RFC 9110 §15.5.16 — 415 Unsupported Media Type · MDN reference
Posting form-encoded data to a JSON-only endpoint, uploading a file type the server will not take, or omitting Content-Type entirely and having the server refuse to guess.
Frequently caused by the client, not the server: a forgotten Content-Type header, or a form encoding where JSON was expected.
Do not retry unchanged. Fix the Content-Type header or convert the payload. Most occurrences are a missing header rather than genuinely unsupported content, which makes it worth logging the header you actually sent.
1 endpoint in this playground answers with 415. Every one is free, needs no signup, and can be called from the browser or with curl.
POST https://funapi.dev/api/movies/v1/movies/{id}/poster — contentType is not an accepted image type (Movies API) Open & run this endpointAll HTTP status codes · All 39 mock REST APIs · Getting started guide
Last updated