Errors

unsupported_media_type

415 – Unsupported media type. The body was sent with a content type the route does not take.

Unsupported media type. Answered with 415.

What it means

The body was sent with a content type the route does not take.

What to do

Send the body as application/json with a matching Content-Type header.

The body

{
  "type": "https://tigby.eu/problems/unsupported_media_type",
  "title": "Unsupported media type",
  "status": 415,
  "detail": "…what was refused, naming this request's own values",
  "code": "unsupported_media_type",
  "doc_url": "https://docs.tigby.eu/errors/unsupported_media_type",
  "agent_hint": "…the next step, for software"
}

Branch on code. The detail names this request's own Handle, id or limit and is not part of the contract.