http
PUT /api/documents/doc-1 HTTP/1.1
Host: api.example.com
Content-Type: application/pdf
[PDF data without Content-Length]
HTTP/1.1 411 Length Required
Content-Type: application/json
{
"error": "length_required",
"message": "Content-Length required for size validation",
"max_file_size": 52428800,
"reason": "Server must validate size before allocating storage"
}