ResolveFrom
Documentation menu

← All errors

HTTP 415

unsupported_media_type

Unsupported media type

https://resolvefrom.com/docs/errors/unsupported_media_type

When this happens

Returned when a QUERY request sends an unsupported Content-Type. Send application/json or application/x-www-form-urlencoded.

How to handle it

Set Content-Type to a media type listed in the Accept-Query response header and resend the request.

Response headers

Header Example
Accept-Query application/json, application/x-www-form-urlencoded

Example response

HTTP/1.1 415
Content-Type: application/problem+json
X-Request-Id: 0195a8c0-7b1e-7000-8000-000000000001
Accept-Query: application/json, application/x-www-form-urlencoded

{
    "type": "https://resolvefrom.com/docs/errors/unsupported_media_type",
    "title": "Unsupported media type",
    "status": 415,
    "detail": "Unsupported Content-Type header.",
    "code": "unsupported_media_type",
    "request_id": "0195a8c0-7b1e-7000-8000-000000000001",
    "from": {
        "provider": "fly.io",
        "region": "iad"
    }
}