The server cannot produce a response matching the request's Accept headers.
406 Not Acceptable is the result of proactive content negotiation failing: the client asked, via Accept, Accept-Language or Accept-Encoding, for representations the server cannot provide. RFC 9110 lets servers ignore those headers and send a default instead, which is usually friendlier, so 406 is uncommon.
Accept: application/xml.Accept: */*) and see if the request succeeds.| Header | Role |
|---|---|
Accept | Request header the server could not satisfy. |
Vary | Lists headers that influence negotiation. |
HTTP/1.1 406 Not Acceptable
Content-Type: application/json
{"error": "Supported types: application/json"}