API24x7
406

Not Acceptable

client error

What does HTTP 406 mean?

The server cannot produce a response matching the Accept headers sent.

Common causes and when you see it

Requesting a content type the API does not provide.

How to fix or handle it

Adjust the Accept header, for example application/json.

Test it yourself

Send a request with the online API tester, inspect the response with the HTTP header checker, or host an endpoint that returns 406 with the mock API generator to see how your app reacts.

HTTP 406 questions

The server cannot produce a response matching the Accept headers sent.

Requesting a content type the API does not provide.

Adjust the Accept header, for example application/json.