4xx Client Error

HTTP 406 Not Acceptable

The server cannot produce a response matching the Accept headers sent by the client. The requested content negotiation failed because none of the available representations match the client's criteria.

Common Causes

  • Accept header requests a format the server doesn't support
  • Accept-Language specifies an unavailable language
  • Content negotiation failed between client and server

How to Fix

  1. 1Adjust the Accept header to match server capabilities
  2. 2Remove restrictive Accept headers to allow any format
  3. 3Check API docs for supported response formats

Example

HTTP 406 Not Acceptable
GET /api/data HTTP/1.1
Accept: application/xml

→ 406 Not Acceptable
→ Server only supports application/json

Related Client Error Codes