HTTP 411 Length Required vs 423 Locked
Both HTTP 411 (Length Required) and 423 (Locked) belong to the 4xx Client Error category. 411 indicates that the server refuses to accept the request without a Content-Length header. Meanwhile, 423 means that the resource is locked and cannot be modified (WebDAV).
Description
The server refuses to accept the request without a Content-Length header.
When You See It
When sending a request body without specifying Content-Length.
How to Fix
Include a Content-Length header in your request.
Description
The resource is locked and cannot be modified (WebDAV).
When You See It
When trying to edit a file that another user has locked in WebDAV.
How to Fix
Wait for the lock to be released, or request the lock owner to unlock it.
Key Differences
HTTP 411: The server refuses to accept the request without a Content-Length header.
HTTP 423: The resource is locked and cannot be modified (WebDAV).
You encounter 411 when when sending a request body without specifying Content-Length.
You encounter 423 when when trying to edit a file that another user has locked in WebDAV.
When to Use Which
For 411 (Length Required): Include a Content-Length header in your request. For 423 (Locked): Wait for the lock to be released, or request the lock owner to unlock it.