HTTPfy

423 Locked

WebDAV: the resource is locked.

423 at a glance

Code
423
Name
Locked
Class
4xx Client error
Status
IANA-registered standard code
Defined in
RFC 4918, Section 11.3
Cacheable by default
No by default. Caches store it only when the response carries explicit freshness (Cache-Control max-age, s-maxage or Expires).

What 423 means

423 Locked (RFC 4918) means the target resource is locked and the request did not supply the right lock token. WebDAV clients take locks while editing a file so others cannot overwrite it.

What typically causes a 423

  • A file open for editing in Office or another WebDAV client on SharePoint, Nextcloud or ownCloud.
  • Stale locks left behind after a client crashed.

Fix it on the server

  • Expire locks with sensible timeouts and give admins a way to clear them (Nextcloud: occ files:scan / file locking settings).

Fix it as a client or visitor

  • Close the file in the other client, wait for the lock to expire, or ask an admin to remove the lock.

Headers that go with 423

HeaderRole
Lock-TokenIdentifies a lock.
IfRequest header used to submit the lock token.

Example response

HTTP/1.1 423 Locked
Content-Type: application/xml; charset=utf-8

<d:error xmlns:d="DAV:"><d:lock-token-submitted/></d:error>

Opens the HTTP headers tool with your URL filled in; it shows the status line and headers of every redirect hop.