{"record":{"id":"a4e26596fbda97ad","repo":"eclipse-vertx/vert.x","slug":"404-not-found","errorCode":null,"errorMessage":"404 Not Found","messagePattern":"404 Not Found","errorType":"http","errorClass":null,"httpStatus":404,"severity":"error","filePath":"vertx-core/src/main/java/io/vertx/core/http/HttpResponseExpectation.java","lineNumber":170,"sourceCode":"  /**\n   * 401 Unauthorized\n   */\n  HttpResponseExpectation SC_UNAUTHORIZED = status(401);\n\n  /**\n   * 402 Payment Required\n   */\n  HttpResponseExpectation SC_PAYMENT_REQUIRED = status(402);\n\n  /**\n   * 403 Forbidden\n   */\n  HttpResponseExpectation SC_FORBIDDEN = status(403);\n\n  /**\n   * 404 Not Found\n   */\n  HttpResponseExpectation SC_NOT_FOUND = status(404);\n\n  /**\n   * 405 Method Not Allowed\n   */\n  HttpResponseExpectation SC_METHOD_NOT_ALLOWED = status(405);\n\n  /**\n   * 406 Not Acceptable\n   */\n  HttpResponseExpectation SC_NOT_ACCEPTABLE = status(406);\n\n  /**\n   * 407 Proxy Authentication Required\n   */\n  HttpResponseExpectation SC_PROXY_AUTHENTICATION_REQUIRED = status(407);\n\n  /**\n   * 408 Request Timeout","sourceCodeStart":152,"sourceCodeEnd":188,"githubUrl":"https://github.com/eclipse-vertx/vert.x/blob/fb308bd8c3f12c79f4ae89bef67fadf6c80d036e/vertx-core/src/main/java/io/vertx/core/http/HttpResponseExpectation.java#L152-L188","documentation":"Constant defining the 404 Not Found response expectation: applying expecting(SC_NOT_FOUND) makes a 404 response fail the request future (as exercised in HttpTest). 404 means the origin did not find the target resource; the 'message' is the reason reported on the failed future.","triggerScenarios":"Thrown at vertx-core/src/main/java/io/vertx/core/http/HttpResponseExpectation.java:170 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Verify the URL/path before retrying","Treat 404 as an outcome: either use a custom expectation that accepts it or handle the failed future explicitly"],"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-14T00:17:10.932Z"}