HTTP 300 Multiple Choices vs 506 Variant Also Negotiates
HTTP 300 (Multiple Choices) is a 3xx Redirection response, while 506 (Variant Also Negotiates) is a 5xx Server Error response. 300 indicates that the request has more than one possible response. The client should choose one of them. In contrast, 506 means that the server has an internal configuration error: the chosen variant resource is configured to engage in content negotiation itself.
Description
The request has more than one possible response. The client should choose one of them.
When You See It
When a resource is available in multiple formats (e.g., different languages or media types).
How to Fix
Select the appropriate resource variant. Send an Accept header with your preferred content type.
Description
The server has an internal configuration error: the chosen variant resource is configured to engage in content negotiation itself.
When You See It
Rare. Indicates a misconfigured server-side content negotiation loop.
How to Fix
Fix the server's content negotiation configuration.
Key Differences
300 is a 3xx Redirection response, while 506 is a 5xx Server Error response.
HTTP 300: The request has more than one possible response. The client should choose one of them.
HTTP 506: The server has an internal configuration error: the chosen variant resource is configured to engage in content negotiation itself.
You encounter 300 when when a resource is available in multiple formats (e.g., different languages or media types).
You encounter 506 when rare. Indicates a misconfigured server-side content negotiation loop.
When to Use Which
For 300 (Multiple Choices): Select the appropriate resource variant. Send an Accept header with your preferred content type. For 506 (Variant Also Negotiates): Fix the server's content negotiation configuration.