406 Not Acceptable

HTTP 406 Not Acceptable is a 4xx client error status. The server cannot produce a response matching the client's Accept headers.

406Status code
4xxClient error
NoCacheable by default
RFC 9110 §15.5.7Defined in

Common causes

What to do

Loosen the Accept header or add */*.

Example response

HTTP/1.1 406 Not Acceptable
Content-Type: application/problem+json

{"status":406,"title":"Not Acceptable"}

Returning 406 in code

Express   res.status(406).json({ … });
Flask     return jsonify(…), 406
PHP       http_response_code(406);
Go        w.WriteHeader(406)
nginx     return 406;

Other 4xx codes

Frequently asked questions

What does HTTP 406 mean?
The server cannot produce a response matching the client's Accept headers.
Is 406 an error?
Yes. It is a client error: the request needs to change before retrying.
Does a 406 hurt SEO?
If search engines see it repeatedly on pages that should rank, those pages can be dropped from the index. Fix it quickly.