WhereGoes

411 Length Required

4xx client error

The server requires a Content-Length header but the request omitted it, common when a client sends a body without declaring its size.

Common causes

  • A client sent a body without Content-Length or Transfer-Encoding.
  • A proxy stripped the length header.
  • The endpoint requires exact sizing for preallocation.

How to fix it

  • Send Content-Length with every request that has a body.
  • Fix proxies that drop the header.
  • Accept chunked uploads where exact length is unknown.

What it means for redirects and SEO

Missing Content-Length belongs to client or proxy configuration, not content. Crawlers GET pages so it seldom fires. Fix it at the proxy or the form handler.

Related codes