Http Code

411

Length Required

The request sent is deemed invalid by the server as it expects the request to contain a valid `Content-Length` header. The client should repeat the request with a valid header containing the length of the body in the request.

Use Case

A user wants to register on a particular website and browser tries to send the related data to the server without specifying the `Content-Length` header. The server returns a 411 code, indicating that it mandates the browser to send the header for the request to be served.