NOT_ACCEPTABLE
Not acceptable. The Accept header allows nothing this API produces.
| Status | 406 |
|---|---|
| Retry? | No |
What it means
The API produces application/json, and application/pdf on the prescription PDF route. The request's Accept header allows neither.
What to do
- Leave Accept unset, or send application/json (application/pdf for the PDF).
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/not-acceptable",
"title": "Not acceptable",
"status": 406,
"detail": "…",
"instance": "/v1/…",
"code": "NOT_ACCEPTABLE",
"requestId": "01JCX6Q4W3J7N8Y2H5K9M1B0VD"
}