SiteError.comYour friendly guide to HTTP status codes
Status CodesBlog
  1. Home
  2. 5xx Server Error
  3. 506 Variant Also Negotiates

506 Variant Also Negotiates

🔄
506
Variant Also Negotiates
⚙️
⚙️

Example HTTP Response

HTTP Response
HTTP/1.1 506 Variant Also Negotiates
Common Causes
  • Circular reference in content negotiation
  • Misconfigured transparent negotiation
  • Variant resource references itself
Technical Details

What does this mean?

Infinite loop alert! The server got confused trying to pick the best version for you and ended up chasing its own tail.

Technical Definition

The server has an internal configuration error: transparent content negotiation results in a circular reference.

RFC Says

"The 506 (Variant Also Negotiates) status code indicates that the server has an internal configuration error: the chosen variant resource is configured to engage in transparent content negotiation itself, and is therefore not a proper end point in the negotiation process."

Plain English:

506 means 'I messed up my content negotiation configuration.' This is part of transparent content negotiation (an obscure feature from RFC 2295) where the server has circular or incorrect negotiation rules. You'll probably never encounter this - it's a server misconfiguration error.

Common Misinterpretation

This is extremely rare and specific to transparent content negotiation, which is barely used. If you see 506, it's a server configuration bug. Application developers should never need to return this status code.

View RFC Documentation
Code Snippets

Ready-to-use code for returning this HTTP status in your application:

Node.js
// Express.js
app.get('/example', (req, res) => {
  res.status(506).json({
    error: 'Variant Also Negotiates',
    message: 'Your error message here'
  });
});

// Native HTTP
const http = require('http');

http.createServer((req, res) => {
  res.writeHead(506, { 'Content-Type': 'application/json' });
  res.end(JSON.stringify({
    error: 'Variant Also Negotiates',
    message: 'Your error message here'
  }));
}).listen(3000);

506 Variant Also Negotiates FAQ

What causes a 506 Variant Also Negotiates error?

Circular reference in content negotiation. Misconfigured transparent negotiation. Variant resource references itself.

505 HTTP Version Not Supported507 Insufficient Storage

Popular Status Codes

  • 200 OK
  • 301 Moved Permanently
  • 302 Found
  • 400 Bad Request
  • 401 Unauthorized
  • 403 Forbidden
  • 404 Not Found
  • 500 Internal Server Error
  • 502 Bad Gateway
  • 503 Service Unavailable

Compare Codes

  • 401 vs 403
  • 301 vs 302
  • 404 vs 410
  • 500 vs 502
  • Compare any codes →

Categories

  • Informational
  • Success
  • Redirection
  • Client Error
  • Server Error
  • NGINX
  • Cloudflare
  • AWS ELB
  • Microsoft IIS

Tools

  • Cheat Sheet
  • Status Code Quiz
  • URL Checker
  • API Playground
  • Blog

© 2026 SiteError.com. All rights reserved.