HTTP 423 Locked
The resource that is being accessed is locked.
4xx Client Error
423
Locked
Description
The 423 Locked status code means the source or destination resource of a method is locked. This response should contain an appropriate precondition or postcondition code, such as lock-token-submitted or no-conflicting-lock. This status code is part of the WebDAV specification and is used when a client attempts to modify a resource that has been locked by another user or process. The lock mechanism prevents concurrent modifications to resources, ensuring data integrity.
When Is It Used?
Used in WebDAV and collaborative editing systems when a resource is locked by another user. For example, when two users try to edit the same document simultaneously, the second user receives 423 indicating the document is currently locked for editing.
Example Response
HTTP/1.1 423 Locked
Content-Type: application/xml
<?xml version="1.0"?>
<d:error xmlns:d="DAV:">
<d:lock-token-submitted/>
</d:error>