HTTP 4xx

411 Length Required

The server refuses the request because it lacks a Content-Length header.

4xx Client error

What causes it

  • A request with a body was sent without a Content-Length header.

How to fix it

Set the Content-Length header, or let your HTTP client set it automatically.

Example response

A typical raw HTTP response a client receives for a 411, with the headers this code is defined around.

HTTP/1.1 411 Length Required
Content-Type: text/html; charset=utf-8

Know before your visitors do.

Sentinel checks your site around the clock from multiple regions and alerts you the moment it starts returning a 4xx error, so you can fix it before it costs you.