411
Client Error
411 Length Required
The server refuses the request because the Content-Length header is missing.
Description
411 Length Required indicates that the server will not accept the request without a valid Content-Length header. Some servers require this header to allocate resources before processing the request body, particularly for large file uploads or streaming data.
Common Causes
- HTTP client not sending
Content-Lengthwith POST/PUT requests - Chunked transfer encoding where server doesn't support it
- Misconfigured HTTP library or custom HTTP client
How to Fix
- Add the
Content-Lengthheader with the correct byte count of the request body - If using chunked encoding, verify the server supports
Transfer-Encoding: chunked - Update your HTTP client library to automatically set
Content-Length
Check your website's HTTP status code
Check now →