| Previous | Next |
| HTTP_STATUS_GONE | HTTP_STATUS_PRECOND_FAILED |
HTTP_STATUS_LENGTH_REQUIRED
The server requires an explicit body length before it will accept the request. A client can retry with a valid Content-Length value when the request format and transport allow it.
Check whether the client sent a body, used chunked transfer coding, or stripped framing headers at an intermediary. Do not calculate a length from character count when the body is encoded bytes.
Operational meaning of HTTP 411 for HTTP_STATUS_LENGTH_REQUIRED
HTTP 411 (HTTP_STATUS_LENGTH_REQUIRED) is a client-error response. AllStat records its meaning as “411 Length Required”. For HTTP_STATUS_LENGTH_REQUIRED, interpret it with the request method, selected representation, response headers, and the specification or product that defines the code; the number alone does not prove that application work completed.
Client and server handling for HTTP_STATUS_LENGTH_REQUIRED
- Treat HTTP_STATUS_LENGTH_REQUIRED as a condition visible at the request boundary; inspect authentication, syntax, preconditions, routing, and resource state before retrying.
- For HTTP_STATUS_LENGTH_REQUIRED, preserve the response body and challenge or retry-related headers because they often carry the actionable reason.
- For HTTP_STATUS_LENGTH_REQUIRED, automatic retry is safe only when the method and status contract allow it and the request has been corrected.
For telemetry, record HTTP 411, method, authority, route template rather than secrets, response headers relevant to caching or retry, latency, upstream identity, and whether the response originated at the application or an intermediary.
Looking for a different code? Search another status or error code.