406Not Acceptable
The server cannot produce the response in any format your Accept headers said you would take.
Browse all HTTP status codesWhen you see it
Usually an Accept header asking for something the endpoint cannot produce, such as requesting XML from an API that only speaks JSON. Most servers ignore the negotiation and send their default format instead, which is why 406 is uncommon.
The fix is nearly always to widen or remove the Accept header rather than to change the server. Some HTTP clients set a restrictive default that the person writing the request never chose, so it is worth checking what was actually sent.
Look up another one
Open
Type a code, a partial code like 40, or any word from a name or description. Everything runs in your browser.
69 of 69 codes. Click a row to copy it.