{"record":{"id":"3965c0eecb07c66c","repo":"eclipse-vertx/vert.x","slug":"506-variant-also-negotiates-rfc2295","errorCode":null,"errorMessage":"506 Variant Also Negotiates (RFC2295)","messagePattern":"506 Variant Also Negotiates \\(RFC2295\\)","errorType":"http","errorClass":null,"httpStatus":506,"severity":"error","filePath":"vertx-core/src/main/java/io/vertx/core/http/HttpResponseExpectation.java","lineNumber":320,"sourceCode":"  /**\n   * 503 Service Unavailable\n   */\n  HttpResponseExpectation SC_SERVICE_UNAVAILABLE = status(503);\n\n  /**\n   * 504 Gateway Timeout\n   */\n  HttpResponseExpectation SC_GATEWAY_TIMEOUT = status(504);\n\n  /**\n   * 505 HTTP Version Not Supported\n   */\n  HttpResponseExpectation SC_HTTP_VERSION_NOT_SUPPORTED = status(505);\n\n  /**\n   * 506 Variant Also Negotiates (RFC2295)\n   */\n  HttpResponseExpectation SC_VARIANT_ALSO_NEGOTIATES = status(506);\n\n  /**\n   * 507 Insufficient Storage (WebDAV, RFC4918)\n   */\n  HttpResponseExpectation SC_INSUFFICIENT_STORAGE = status(507);\n\n  /**\n   * 510 Not Extended (RFC2774)\n   */\n  HttpResponseExpectation SC_NOT_EXTENDED = status(510);\n\n  /**\n   * 511 Network Authentication Required (RFC6585)\n   */\n  HttpResponseExpectation SC_NETWORK_AUTHENTICATION_REQUIRED = status(511);\n\n  /**\n   * Creates an expectation asserting that the status response code is equal to {@code statusCode}.","sourceCodeStart":302,"sourceCodeEnd":338,"githubUrl":"https://github.com/eclipse-vertx/vert.x/blob/fb308bd8c3f12c79f4ae89bef67fadf6c80d036e/vertx-core/src/main/java/io/vertx/core/http/HttpResponseExpectation.java#L302-L338","documentation":"Constant defining the 506 Variant Also Negotiates response expectation: with expecting(SC_VARIANT_ALSO_NEGOTIATES), a 506 response fails the request future. This indicates a server-internal Transparent Content Negotiation misconfiguration; the 'message' is the reason attached to the failure.","triggerScenarios":"Thrown at vertx-core/src/main/java/io/vertx/core/http/HttpResponseExpectation.java:320 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Report the server-side TCN configuration error","Bypass content negotiation for this resource"],"exampleFix":null,"handlingStrategy":"try-catch","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"fb308bd8c3f12c79f4ae89bef67fadf6c80d036e","analyzedAt":"2026-09-06T11:37:12.241Z","contentChangedAt":"2026-09-06T11:37:12.241Z","schemaVersion":2},"datasetVersion":"2026-09-14T05:17:10.506Z"}