411

HTTP 411 Length Required

4xx Client Error

  1. Home
  2. > HTTP Status Codes >
  3. > 4xx >
  4. 411
4xx Client Error RFC 7231, Section 6.5.10

What is HTTP 411 Length Required?

The 411 (Length Required) status code indicates that the server refuses to accept the request without a defined Content-Length header. The client must include a valid Content-Length header field containing the length of the message body.

Common Use Cases

  • Upload endpoints requiring Content-Length
  • APIs that validate request body size before processing
Help2Code Logo
Menu