{"record":{"id":"e7bff182ac8f0c9c","repo":"eclipse-vertx/vert.x","slug":"504-gateway-timeout","errorCode":null,"errorMessage":"504 Gateway Timeout","messagePattern":"504 Gateway Timeout","errorType":"http","errorClass":null,"httpStatus":504,"severity":"error","filePath":"vertx-core/src/main/java/io/vertx/core/http/HttpResponseExpectation.java","lineNumber":310,"sourceCode":"  /**\n   * 501 Not Implemented\n   */\n  HttpResponseExpectation SC_NOT_IMPLEMENTED = status(501);\n\n  /**\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)","sourceCodeStart":292,"sourceCodeEnd":328,"githubUrl":"https://github.com/eclipse-vertx/vert.x/blob/fb308bd8c3f12c79f4ae89bef67fadf6c80d036e/vertx-core/src/main/java/io/vertx/core/http/HttpResponseExpectation.java#L292-L328","documentation":"Constant defining the 504 Gateway Timeout response expectation: with expecting(SC_GATEWAY_TIMEOUT), a 504 response fails the request future. The gateway/proxy did not receive a timely upstream response; the 'message' is the reason on the failed future.","triggerScenarios":"Thrown at vertx-core/src/main/java/io/vertx/core/http/HttpResponseExpectation.java:310 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Retry the request (transient upstream slowness)","Increase upstream timeout budgets or shed load"],"exampleFix":null,"handlingStrategy":"retry","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"}