API error · HTTP 415
unsupported_media_type
Unsupported media type
| HTTP status | 415 Unsupported Media Type |
|---|---|
code | unsupported_media_type |
title | Unsupported media type |
| Retry? | No |
What it means
The uploaded file is not an accepted format. Documents must be PDF, JPEG or PNG.
What to do
Do not retry unchanged. Convert the file to PDF, JPEG or PNG (§6, Step 4).
Example response
Branch on code, never on title or detail. detail varies; quote request_id to support.
HTTP/1.1 415 Unsupported Media Type
Content-Type: application/problem+json
{
"type": "https://www.underwritinguk.ai/developers/errors/unsupported_media_type",
"title": "Unsupported media type",
"status": 415,
"code": "unsupported_media_type",
"detail": "Unsupported media type.",
"request_id": "7b0b1e5c-2f7e-4a52-9a43-5b0d0f0e9d11"
}All error codes · Error catalogue in the integration guide (§15) · Error handling and retries (§12.4)