unsupported_media_type
A request with a body declared a `Content-Type` other than `application/json`.
| Code | Type | HTTP | Category |
|---|---|---|---|
unsupported_media_type | invalid_request_error | 415 | Request |
Cause
A request with a body declared a Content-Type other than application/json.
What to do
Set Content-Type: application/json and serialise the body as JSON.
Message returned by the API
Only Content-Type application/json is accepted.
Related
All Request error codes
Causes and actions for errors in this category.
Error codes by category
Find an error by the category that emits it.
Full reference table
All codes, HTTP statuses, types and descriptions in one reference.
Error model
Interpret the error envelope and handle errors by code.