@http · HTTP status codes, explained HTTP/1.1 411 Length Required ━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 4xx · Client error Send a Content-Length header. 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 related 413 Content Too Large   400 Bad Request   415 Unsupported Media Type spec RFC 9110 §15.5.12 https://www.rfc-editor.org/rfc/rfc9110#section-15.5.12 web https://athttp.com/411 ← curl athttp.com/410 curl athttp.com/412 →