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-08-18
Explore this reference
Related status codes
Related headers