All HTTP status codes

HTTP 411 Length Required

Client Error

The server insists on a Content-Length header and the request didn't include one (e.g. chunked uploads it refuses to accept).

Defined in RFC 9110

Common causes

  • Chunked transfer encoding to a server/proxy that requires explicit length

How to fix it

  1. Send Content-Length with the request body

  2. Disable chunked encoding in the client for that endpoint

Want to explore status codes interactively? Try the free HTTP Status Code Reference — search, categories and example responses, right in your browser.