HTTP 417 Expectation Failed vs 423 Locked
Both HTTP 417 (Expectation Failed) and 423 (Locked) belong to the 4xx Client Error category. 417 indicates that the server cannot meet the requirements of the Expect header. Meanwhile, 423 means that the resource is locked and cannot be modified (WebDAV).
Description
The server cannot meet the requirements of the Expect header.
When You See It
When the server doesn't support Expect: 100-continue.
How to Fix
Remove the Expect header from 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 417: The server cannot meet the requirements of the Expect header.
HTTP 423: The resource is locked and cannot be modified (WebDAV).
You encounter 417 when when the server doesn't support Expect: 100-continue.
You encounter 423 when when trying to edit a file that another user has locked in WebDAV.
When to Use Which
For 417 (Expectation Failed): Remove the Expect header from your request. For 423 (Locked): Wait for the lock to be released, or request the lock owner to unlock it.