506

Variant Also Negotiates

Overview

506 Variant Also Negotiates indicates a server configuration error: in transparent content negotiation, the chosen variant is itself a negotiable resource, so the negotiation falls into a loop.

This is not the client's fault but a server misconfiguration. The transparent-negotiation feature of RFC 2295 is barely used in practice, so this code is very rarely encountered.

When it happens

Request / Response example

Request
GET /document HTTP/1.1
Host: example.com
Negotiate: trans
Response
HTTP/1.1 506 Variant Also Negotiates
Content-Type: text/plain

A content-negotiation configuration error occurred on the server.

In code

# Point a resource directly at a concrete file, not another negotiable resource
location = /document {
  try_files /document.en.html =404;
}

Common causes

How to fix

Notes

Related status codes

Related headers

VaryAlternates

Specification