Skip to main content
500CallsDocs
Browse the docs

unsupported_media_type

Unsupported media type

HTTP status
415
Code
unsupported_media_type
Retry?
No

What it means

The body is not sent as JSON, or it is compressed. The API does not take compressed request bodies.

What to do

Send Content-Type: application/json with an uncompressed body.

Example

Example 415 response
{  "type": "https://docs.messaging.500calls.com/errors/unsupported_media_type",  "title": "Unsupported media type",  "status": 415,  "code": "unsupported_media_type",  "detail": "Unsupported media type",  "request_id": "req_01M3KR6CQ26S90NG2V790GVFTX",  "errors": []}

Returned by

How errors work