4xx Client error

HTTP 406 Not Acceptable

The server cannot produce a response that matches the client Accept headers.

406 Not Acceptable means the server cannot produce a response in any format the client asked for in its Accept headers.

HTTP/1.1 406 Not Acceptable

Common causes

  • The client sent Accept: application/xml to an API that only speaks JSON.
  • Strict Accept-Language or Accept-Encoding values that the server cannot meet.

How to fix it

  • Send Accept: application/json, or */*, or drop the header.
  • Most servers ignore Accept and fall back to a default instead of answering 406.

Related status codes

Other status codes

1xx Informational

2xx Success

3xx Redirection

5xx Server error

Search all HTTP status codes