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
| Code | unsupported_media_type |
|---|---|
| Class | invalid_request |
| HTTP status | 415 |
| Meta keys | expected |
| Raised | Yes |
The response uses the standard {"error": {…}} envelope. Branch on error.code, not the human-readable message. Preserve request_id when reporting a failure.