{"record":{"id":"bf79590a74125231","repo":"eclipse-vertx/vert.x","slug":"503-service-unavailable","errorCode":null,"errorMessage":"503 Service Unavailable","messagePattern":"503 Service Unavailable","errorType":"http","errorClass":null,"httpStatus":503,"severity":"error","filePath":"vertx-core/src/main/java/io/vertx/core/http/HttpResponseExpectation.java","lineNumber":305,"sourceCode":"  /**\n   * 500 Internal Server Error\n   */\n  HttpResponseExpectation SC_INTERNAL_SERVER_ERROR = status(500);\n\n  /**\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)","sourceCodeStart":287,"sourceCodeEnd":323,"githubUrl":"https://github.com/eclipse-vertx/vert.x/blob/fb308bd8c3f12c79f4ae89bef67fadf6c80d036e/vertx-core/src/main/java/io/vertx/core/http/HttpResponseExpectation.java#L287-L323","documentation":"Constant defining the 503 Service Unavailable response expectation: applying expecting(SC_SERVICE_UNAVAILABLE) turns a 503 response into a failed request future. The server is overloaded or down for maintenance; the 'message' is the reason attached to the failure.","triggerScenarios":"Thrown at vertx-core/src/main/java/io/vertx/core/http/HttpResponseExpectation.java:305 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Retry later with backoff (respect Retry-After if present)","Use a fallback endpoint when the service is unavailable"],"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-14T05:17:10.506Z"}