HTTP 506 Variant Also Negotiates

The server has a content-negotiation configuration error.

Updated

506
Variant Also Negotiates
5xx Server error
Class
RFC 2295
Defined in

What does HTTP 506 mean?

The server has a content-negotiation configuration error. A chosen variant is itself configured to negotiate, causing a loop. It points to a misconfigured Apache MultiViews or type-map setup.

5xx Server error: The request looked valid, but the server failed to fulfil it. The fix is on the server side.

Common causes of a 506 error

  • Circular content-negotiation rules on the server.

How to fix 506 Variant Also Negotiates

  • Review Apache MultiViews and type-map configuration.

506 and SEO

Like other 5xx errors: ongoing errors reduce crawling.

Example response

HTTP/1.1 506 Variant Also Negotiates

How to return a 506 response

Node.js (Express)

res.status(506).json({ error: 'Variant Also Negotiates' });

PHP

http_response_code(506);

Python (Flask)

return {'error': 'Variant Also Negotiates'}, 506

Go (net/http)

w.WriteHeader(506)

nginx

return 506;

Related status codes

Check which status code a URL returns with the HTTP header checker.

All HTTP status codesSearch the full list of status codes from 100 to 599 with their meanings and SEO impact.
Open the full list

Frequently asked questions

What does status code 506 mean?
506 Variant Also Negotiates: The server has a content-negotiation configuration error.
How do I fix a 506 error?
Review Apache MultiViews and type-map configuration.
Does 506 affect SEO?
Like other 5xx errors: ongoing errors reduce crawling.