4xx Client Error
You're trying to send me something, but you didn't tell me how big it is. I need to know the size before I can accept it.
Use 411 when the server refuses to accept the request without a defined Content-Length.
POST https://api.example.test/api/upload411 Length Required
# Headers
Content-Type: application/json
# Body
{
"error": "content_length_required"
}Server requires Content-Length header to process the upload