HTTP Status Codes

411 Length Required

The server refuses to accept the request without a Content-Length header defining the body size.

What it means

411 Length Required is returned when a server needs to know the body size in advance and the client omitted Content-Length. The client can fix it by setting the header, or by using chunked transfer encoding where the server supports it.

Why it matters

  • It lets servers reject unbounded bodies they cannot buffer safely.

Common mistakes

  • Streaming a body without Content-Length to a server that requires it.

How WebInspect checks this

  • WebInspect reports request and response framing headers including Content-Length and Transfer-Encoding.