What is HTTP 406 Not Acceptable?
The 406 Not Acceptable response occurs when the server cannot generate a representation that matches the client requirements.
The Accept Header
Clients communicate supported formats using the Accept header.
Accept: application/xml
Common Causes
- Unsupported response format
- Incorrect API headers
- Content negotiation failures
Summary
406 Not Acceptable means the server cannot satisfy the client's requested response format.