UNSUPPORTED_MEDIA_TYPE
Unsupported media type. The request body is not JSON.
| Status | 415 |
|---|---|
| Retry? | No |
What it means
A request body was sent with a Content-Type other than application/json (or another +json type).
What to do
- Send Content-Type: application/json with a JSON body.
The response
Served as application/problem+json. Branch on code; detail describes this occurrence and can change wording at any time.
{
"type": "https://docs.medos.one/errors/unsupported-media-type",
"title": "Unsupported media type",
"status": 415,
"detail": "…",
"instance": "/v1/…",
"code": "UNSUPPORTED_MEDIA_TYPE",
"requestId": "01JCX6Q4W3J7N8Y2H5K9M1B0VD"
}