Error Codes Wiki

HTTP 506 Variant Also Negotiates — What It Means & How to Fix It

Critical5xx server error

Overview

The HTTP 506 Variant Also Negotiates status code indicates that the server has an internal configuration error where the chosen variant resource is configured to engage in content negotiation itself.

Key Details

  • This status code is defined in RFC 2295 for Transparent Content Negotiation.
  • It indicates a circular reference in content negotiation configuration.
  • The chosen variant should provide a fixed response, not negotiate further.
  • It is extremely rare in practice.

Common Causes

  • Misconfigured transparent content negotiation on the server.
  • A variant resource incorrectly configured to also perform content negotiation.
  • Circular reference in the server content negotiation setup.

Steps

  1. 1Fix the server content negotiation configuration to break the circular reference.
  2. 2Ensure variant resources return fixed responses without further negotiation.
  3. 3Review the Alternates header for misconfigured variants.
  4. 4Simplify content negotiation rules on the server.

Tags

httpserver-errorcontent-negotiationconfiguration

Related Items

More in 5xx Server Error

Frequently Asked Questions

It means the server has a misconfiguration in its content negotiation setup, creating a circular reference where a variant also tries to negotiate.