{"record":{"id":"2874622644a64b8b","repo":"eclipse-vertx/vert.x","slug":"510-not-extended-rfc2774","errorCode":null,"errorMessage":"510 Not Extended (RFC2774)","messagePattern":"510 Not Extended \\(RFC2774\\)","errorType":"http","errorClass":null,"httpStatus":510,"severity":"error","filePath":"vertx-core/src/main/java/io/vertx/core/http/HttpResponseExpectation.java","lineNumber":330,"sourceCode":"  /**\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)\n   */\n  HttpResponseExpectation SC_NOT_EXTENDED = status(510);\n\n  /**\n   * 511 Network Authentication Required (RFC6585)\n   */\n  HttpResponseExpectation SC_NETWORK_AUTHENTICATION_REQUIRED = status(511);\n\n  /**\n   * Creates an expectation asserting that the status response code is equal to {@code statusCode}.\n   *\n   * @param statusCode the expected status code\n   */\n  static HttpResponseExpectation status(int statusCode) {\n    return status(statusCode, statusCode + 1);\n  }\n\n  static HttpResponseExpectation status(int min, int max) {\n    return new HttpResponseExpectation() {\n      @Override","sourceCodeStart":312,"sourceCodeEnd":348,"githubUrl":"https://github.com/eclipse-vertx/vert.x/blob/fb308bd8c3f12c79f4ae89bef67fadf6c80d036e/vertx-core/src/main/java/io/vertx/core/http/HttpResponseExpectation.java#L312-L348","documentation":"Constant defining the 510 Not Extended response expectation: with expecting(SC_NOT_EXTENDED), a 510 response fails the request future. The mandatory extension policy in the request was not met by the server; the 'message' is the reason attached to the expectation failure.","triggerScenarios":"Thrown at vertx-core/src/main/java/io/vertx/core/http/HttpResponseExpectation.java:330 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Include the mandatory extension declarations the policy requires","Handle the failure when the extension is genuinely unsupported"],"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-14T05:17:10.506Z"}