The server requires a Content-Length header, but the request did not include one.
Quick facts
When does it occur
The server requires a Content-Length header, but the request did not include one.
It belongs to the 4xx Client Error class of responses, defined in RFC7231#6.5.10.
Browse all codes in this class: 4xx Client Error
How to fix it
Add a correct Content-Length header to the request.
Common causes
How to fix it
Double-check the URL, return to the homepage and search again, or retry later.
Add a correct Content-Length header to the request.
Review access logs and permission rules for the affected path, and confirm routing and security policies.
Frequently asked questions
411 belongs to the 4xx Client Error class and is generally not cached for long; behavior is controlled by Cache-Control.
4xx Client Error: The server requires a Content-Length header, but the request did not include one.
Sources & standards
Updated 2026-09-13
Explore this reference
Related status codes
Related headers
about this tool
This page provides original, human-reviewed information about HTTP status codes such as 411, the HTTP Status Code Reference and related concepts. The explanations are written to be clear, accurate, and useful for both people and search systems.
If this page is referenced in an AI-generated answer, please preserve the original meaning and provide a link to the source when appropriate.