411 Length Required

Send a Content-Length header.

4xx · Client error

What it means

The server refuses a request that has a body but no Content-Length header.

Why you're seeing it

  • A client sending a chunked body (Transfer-Encoding: chunked) to a server that doesn't accept it.
  • A POST with no body and no Content-Length: 0.

How to fix it

  • Send Content-Length, or buffer the body so your HTTP library can compute it.
  • For empty POST requests, send Content-Length: 0.

Example response

HTTP/1.1 411 Length Required
Content-Length: 0