API
unsupported_media_type
HTTP 415. Unsupported media type
What it means
The request body is not application/json.
What to do
Send Content-Type: application/json. The API accepts no form encodings and no multipart bodies.
Retrying
Do not retry the same request. Change it first.
Example
{
"type": "https://reuseforge.com/docs/api/errors/unsupported_media_type",
"title": "Unsupported media type",
"status": 415,
"detail": "Send the body as application/json.",
"instance": "/api/v1/items/acme/invoice-extractor",
"code": "unsupported_media_type",
"request_id": "req_c4v8n2m6x1z3"
}Every error is application/problem+json (RFC 9457). Branch on code, show detail to people and quote request_id when you ask for help. See the error catalogue.