{"record":{"id":"03e1575b0ce0f57d","repo":"eclipse-vertx/vert.x","slug":"501-not-implemented","errorCode":null,"errorMessage":"501 Not Implemented","messagePattern":"501 Not Implemented","errorType":"http","errorClass":null,"httpStatus":501,"severity":"error","filePath":"vertx-core/src/main/java/io/vertx/core/http/HttpResponseExpectation.java","lineNumber":295,"sourceCode":"  /**\n   * 431 Request Header Fields Too Large (RFC6585)\n   */\n  HttpResponseExpectation SC_REQUEST_HEADER_FIELDS_TOO_LARGE = status(431);\n\n  /**\n   * Any 5XX server error\n   */\n  HttpResponseExpectation SC_SERVER_ERRORS = status(500, 600);\n\n  /**\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","sourceCodeStart":277,"sourceCodeEnd":313,"githubUrl":"https://github.com/eclipse-vertx/vert.x/blob/fb308bd8c3f12c79f4ae89bef67fadf6c80d036e/vertx-core/src/main/java/io/vertx/core/http/HttpResponseExpectation.java#L277-L313","documentation":"Constant defining the 501 Not Implemented response expectation: applying expecting(SC_NOT_IMPLEMENTED) makes a 501 response fail the request future. The server does not support the functionality required (often an unsupported method); the 'message' is the reason reported on the failure.","triggerScenarios":"Thrown at vertx-core/src/main/java/io/vertx/core/http/HttpResponseExpectation.java:295 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Avoid the unsupported method/feature against this server","Handle the failed future and degrade gracefully"],"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"}