{"record":{"id":"252f3ffa319b8080","repo":"eclipse-vertx/vert.x","slug":"505-http-version-not-supported","errorCode":null,"errorMessage":"505 HTTP Version Not Supported","messagePattern":"505 HTTP Version Not Supported","errorType":"http","errorClass":null,"httpStatus":505,"severity":"error","filePath":"vertx-core/src/main/java/io/vertx/core/http/HttpResponseExpectation.java","lineNumber":315,"sourceCode":"  /**\n   * 502 Bad Gateway\n   */\n  HttpResponseExpectation SC_BAD_GATEWAY = status(502);\n\n  /**\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)","sourceCodeStart":297,"sourceCodeEnd":333,"githubUrl":"https://github.com/eclipse-vertx/vert.x/blob/fb308bd8c3f12c79f4ae89bef67fadf6c80d036e/vertx-core/src/main/java/io/vertx/core/http/HttpResponseExpectation.java#L297-L333","documentation":"Constant defining the 505 HTTP Version Not Supported response expectation: applying expecting(SC_HTTP_VERSION_NOT_SUPPORTED) makes a 505 response fail the request future. The server refuses the major HTTP version used in the request; the 'message' is the reason attached to the failure.","triggerScenarios":"Thrown at vertx-core/src/main/java/io/vertx/core/http/HttpResponseExpectation.java:315 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Downgrade the request to a supported HTTP version","Handle the failure and skip version-specific features against this server"],"exampleFix":null,"handlingStrategy":"fallback","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-14T00:17:10.932Z"}