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 AcceptableCommon 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.