HTTP 416 Range Not Satisfiable vs 423 Locked
Both HTTP 416 (Range Not Satisfiable) and 423 (Locked) belong to the 4xx Client Error category. 416 indicates that the server cannot serve the requested byte range. The Range header value is outside the resource's size. Meanwhile, 423 means that the resource is locked and cannot be modified (WebDAV).
Description
The server cannot serve the requested byte range. The Range header value is outside the resource's size.
When You See It
When requesting a byte range beyond the file's actual size.
How to Fix
Check the Content-Range in the response for the actual file size and adjust your Range header.
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 416: The server cannot serve the requested byte range. The Range header value is outside the resource's size.
HTTP 423: The resource is locked and cannot be modified (WebDAV).
You encounter 416 when when requesting a byte range beyond the file's actual size.
You encounter 423 when when trying to edit a file that another user has locked in WebDAV.
When to Use Which
For 416 (Range Not Satisfiable): Check the Content-Range in the response for the actual file size and adjust your Range header. For 423 (Locked): Wait for the lock to be released, or request the lock owner to unlock it.