HTTP 405 Method Not Allowed vs 423 Locked
Both HTTP 405 (Method Not Allowed) and 423 (Locked) belong to the 4xx Client Error category. 405 indicates that the HTTP method is not allowed for the requested resource. The response includes an Allow header listing valid methods. Meanwhile, 423 means that the resource is locked and cannot be modified (WebDAV).
Description
The HTTP method is not allowed for the requested resource. The response includes an Allow header listing valid methods.
When You See It
When sending POST to a read-only endpoint, or DELETE to a non-deletable resource.
How to Fix
Check the Allow response header for supported methods. Use the correct 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
HTTP 405: The HTTP method is not allowed for the requested resource. The response includes an Allow header listing valid methods.
HTTP 423: The resource is locked and cannot be modified (WebDAV).
You encounter 405 when when sending POST to a read-only endpoint, or DELETE to a non-deletable resource.
You encounter 423 when when trying to edit a file that another user has locked in WebDAV.
When to Use Which
For 405 (Method Not Allowed): Check the Allow response header for supported methods. Use the correct HTTP method. For 423 (Locked): Wait for the lock to be released, or request the lock owner to unlock it.