{"record":{"id":"8a5e0b36160400ac","repo":"nginx/nginx","slug":"ngx-log-err-8a5e0b","errorCode":"NGX_LOG_ERR","errorMessage":"unexpected status code %ui in slice response","messagePattern":"unexpected status code %ui in slice response","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/http/modules/ngx_http_slice_filter_module.c","lineNumber":122,"sourceCode":"    off_t                            end;\n    ngx_int_t                        rc;\n    ngx_table_elt_t                 *h;\n    ngx_http_slice_ctx_t            *ctx;\n    ngx_http_slice_loc_conf_t       *slcf;\n    ngx_http_slice_content_range_t   cr;\n\n    ctx = ngx_http_get_module_ctx(r, ngx_http_slice_filter_module);\n    if (ctx == NULL) {\n        return ngx_http_next_header_filter(r);\n    }\n\n    if (r->headers_out.status != NGX_HTTP_PARTIAL_CONTENT) {\n        if (r == r->main) {\n            ngx_http_set_ctx(r, NULL, ngx_http_slice_filter_module);\n            return ngx_http_next_header_filter(r);\n        }\n\n        ngx_log_error(NGX_LOG_ERR, r->connection->log, 0,\n                      \"unexpected status code %ui in slice response\",\n                      r->headers_out.status);\n        return NGX_ERROR;\n    }\n\n    h = r->headers_out.etag;\n\n    if (ctx->etag.len) {\n        if (h == NULL\n            || h->value.len != ctx->etag.len\n            || ngx_strncmp(h->value.data, ctx->etag.data, ctx->etag.len)\n               != 0)\n        {\n            ngx_log_error(NGX_LOG_ERR, r->connection->log, 0,\n                          \"etag mismatch in slice response\");\n            return NGX_ERROR;\n        }\n    }","sourceCodeStart":104,"sourceCodeEnd":140,"githubUrl":"https://github.com/nginx/nginx/blob/3f6f7824d4e2eb1ac37dec76683d525ac0ff521c/src/http/modules/ngx_http_slice_filter_module.c#L104-L140","documentation":"Error \"unexpected status code %ui in slice response\" thrown in nginx/nginx.","triggerScenarios":"Thrown at src/http/modules/ngx_http_slice_filter_module.c:122 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"}