eclipse-vertx/vert.x · error
504 Gateway Timeout
Error message
504 Gateway Timeout
What it means
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.
Source
Thrown at vertx-core/src/main/java/io/vertx/core/http/HttpResponseExpectation.java:310
/** * 501 Not Implemented */ HttpResponseExpectation SC_NOT_IMPLEMENTED = status(501); /** * 502 Bad Gateway */ HttpResponseExpectation SC_BAD_GATEWAY = status(502); /** * 503 Service Unavailable */ HttpResponseExpectation SC_SERVICE_UNAVAILABLE = status(503); /** * 504 Gateway Timeout */ HttpResponseExpectation SC_GATEWAY_TIMEOUT = status(504); /** * 505 HTTP Version Not Supported */ HttpResponseExpectation SC_HTTP_VERSION_NOT_SUPPORTED = status(505); /** * 506 Variant Also Negotiates (RFC2295) */ HttpResponseExpectation SC_VARIANT_ALSO_NEGOTIATES = status(506); /** * 507 Insufficient Storage (WebDAV, RFC4918) */ HttpResponseExpectation SC_INSUFFICIENT_STORAGE = status(507); /** * 510 Not Extended (RFC2774)
View on GitHub (pinned to fb308bd8c3)
Solutions
- Retry the request (transient upstream slowness)
- Increase upstream timeout budgets or shed load
Defensive patterns
Strategy: retry
When it happens
Trigger: Thrown at vertx-core/src/main/java/io/vertx/core/http/HttpResponseExpectation.java:310 when the library encounters an invalid state.
Common situations: See trigger scenarios.
Understand the failure class
- Timeouts: ETIMEDOUT, deadlines, and hung requests — what actually expires when a request times out.
- HTTP status errors: handling 4xx and 5xx responses — how to handle 4xx and 5xx responses properly.
AI-assisted analysis of eclipse-vertx/vert.x@fb308bd8c3 (2026-09-06).
Data as JSON: /api/errors/e7bff182ac8f0c9c.
Report an issue: GitHub.