HTTP 307 Temporary Redirect vs 423 Locked
HTTP 307 (Temporary Redirect) is a 3xx Redirection response, while 423 (Locked) is a 4xx Client Error response. 307 indicates that the resource temporarily resides at a different URL. Unlike 302, this guarantees the HTTP method will NOT be changed. In contrast, 423 means that the resource is locked and cannot be modified (WebDAV).
Description
The resource temporarily resides at a different URL. Unlike 302, this guarantees the HTTP method will NOT be changed.
When You See It
When you need a temporary redirect that preserves the request method (POST stays POST).
How to Fix
Follow the Location header using the same HTTP method.
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
307 is a 3xx Redirection response, while 423 is a 4xx Client Error response.
HTTP 307: The resource temporarily resides at a different URL. Unlike 302, this guarantees the HTTP method will NOT be changed.
HTTP 423: The resource is locked and cannot be modified (WebDAV).
You encounter 307 when when you need a temporary redirect that preserves the request method (POST stays POST).
You encounter 423 when when trying to edit a file that another user has locked in WebDAV.
When to Use Which
For 307 (Temporary Redirect): Follow the Location header using the same HTTP method. For 423 (Locked): Wait for the lock to be released, or request the lock owner to unlock it.