{"record":{"id":"a5b9ef0d5a600566","repo":"nginx/nginx","slug":"ngx-http-length-required","errorCode":"NGX_HTTP_LENGTH_REQUIRED","errorMessage":"NGX_HTTP_LENGTH_REQUIRED","messagePattern":"NGX_HTTP_LENGTH_REQUIRED","errorType":"error_code","errorClass":null,"httpStatus":411,"severity":"error","filePath":"src/http/ngx_http_request.h","lineNumber":101,"sourceCode":"#define NGX_HTTP_PARTIAL_CONTENT           206\n\n#define NGX_HTTP_SPECIAL_RESPONSE          300\n#define NGX_HTTP_MOVED_PERMANENTLY         301\n#define NGX_HTTP_MOVED_TEMPORARILY         302\n#define NGX_HTTP_SEE_OTHER                 303\n#define NGX_HTTP_NOT_MODIFIED              304\n#define NGX_HTTP_TEMPORARY_REDIRECT        307\n#define NGX_HTTP_PERMANENT_REDIRECT        308\n\n#define NGX_HTTP_BAD_REQUEST               400\n#define NGX_HTTP_UNAUTHORIZED              401\n#define NGX_HTTP_FORBIDDEN                 403\n#define NGX_HTTP_NOT_FOUND                 404\n#define NGX_HTTP_NOT_ALLOWED               405\n#define NGX_HTTP_PROXY_AUTH_REQUIRED       407\n#define NGX_HTTP_REQUEST_TIME_OUT          408\n#define NGX_HTTP_CONFLICT                  409\n#define NGX_HTTP_LENGTH_REQUIRED           411\n#define NGX_HTTP_PRECONDITION_FAILED       412\n#define NGX_HTTP_REQUEST_ENTITY_TOO_LARGE  413\n#define NGX_HTTP_REQUEST_URI_TOO_LARGE     414\n#define NGX_HTTP_UNSUPPORTED_MEDIA_TYPE    415\n#define NGX_HTTP_RANGE_NOT_SATISFIABLE     416\n#define NGX_HTTP_MISDIRECTED_REQUEST       421\n#define NGX_HTTP_TOO_MANY_REQUESTS         429\n\n\n/* Our own HTTP codes */\n\n/* The special code to close connection without any response */\n#define NGX_HTTP_CLOSE                     444\n\n#define NGX_HTTP_NGINX_CODES               494\n\n#define NGX_HTTP_REQUEST_HEADER_TOO_LARGE  494\n","sourceCodeStart":83,"sourceCodeEnd":119,"githubUrl":"https://github.com/nginx/nginx/blob/3f6f7824d4e2eb1ac37dec76683d525ac0ff521c/src/http/ngx_http_request.h#L83-L119","documentation":"Error \"NGX_HTTP_LENGTH_REQUIRED\" thrown in nginx/nginx.","triggerScenarios":"Thrown at src/http/ngx_http_request.h:101 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"3f6f7824d4e2eb1ac37dec76683d525ac0ff521c","analyzedAt":"2026-08-22T03:09:46.447Z","schemaVersion":2},"datasetVersion":"2026-08-22T04:17:13.399Z"}