506 Variant Also Negotiates

HTTP 506 Variant Also Negotiates is a 5xx server error status. A content-negotiation configuration error made a variant negotiate with itself.

506Status code
5xxServer error
NoCacheable by default
RFC 2295Defined in

Common causes

What to do

Server configuration issue.

Example response

HTTP/1.1 506 Variant Also Negotiates
Content-Type: application/problem+json

{"status":506,"title":"Variant Also Negotiates"}

Returning 506 in code

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

Other 5xx codes

Frequently asked questions

What does HTTP 506 mean?
A content-negotiation configuration error made a variant negotiate with itself.
Is 506 an error?
Yes. It is a server error: the request may be fine and the problem lies on the server or an upstream service.
Does a 506 hurt SEO?
If search engines see it repeatedly on pages that should rank, those pages can be dropped from the index. Fix it quickly.