API error · HTTP 415

unsupported_media_type

not application/json.

What it means

not application/json.

How to handle it

Set Content-Type to the value in meta.expected, normally application/json, before sending the body.

Wire contract

Codeunsupported_media_type
Classinvalid_request
HTTP status415
Meta keysexpected
RaisedYes

The response uses the standard {"error": {…}} envelope. Branch on error.code, not the human-readable message. Preserve request_id when reporting a failure.