Skip to content

General

Not acceptable

The API cannot answer in any of the formats the request accepts.

HTTP 406NOT_ACCEPTABLE

In the response

Besides the standard members type, title, status, detail, instance, plus code and requestId:

Nothing else. This error carries no errors or meta.

Example response

HTTP 406 · application/problem+json
{
  "type": "https://smartpathshaala.com/problems/not-acceptable",
  "title": "Not acceptable",
  "status": 406,
  "detail": "<what went wrong this time>",
  "instance": "<the request path>",
  "code": "NOT_ACCEPTABLE",
  "requestId": "<also sent as X-Request-Id>"
}

Values in angle brackets vary per request. Quote the requestId when reporting an error; it is how the server’s log line is found.