406

A 406 Not Acceptable response indicates that the server can’t return a response in the format requested by the Accept header that’s unsupported.

In this example, the request used Accept: application/json123, but the endpoint only supports application/json.

{
  "contextInfo": {
      "allowedMediaTypes": [
          "application/json"
      ],
      "unsupportedMediaType": "application/json123"
  },
  "detail": "Could not find acceptable representation. Allowed media type(s) are [application/json].",
  "status": 406,
  "title": "Could not find acceptable representation.",
  "type": "/mtls-edge-truststore/error-types/media-type-not-acceptable"
}