HTTP 423 Locked
HTTP 423 Locked means the resource is locked and cannot be changed right now. It comes from WebDAV, where files can be locked for editing, and some APIs…
Quick answer
HTTP 423 Locked means the resource is locked and cannot be changed right now. It comes from WebDAV, where files can be locked for editing, and some APIs reuse it for records locked by another process or user.
Last updated · Maintained by FreeAIToolz · How we test
What does HTTP 423 Locked mean?
In WebDAV (SharePoint, Nextcloud, network drives), a client that holds a lock must include its lock token to modify the file. Other clients get 423 until the lock is released or expires.
| Status code | 423 |
|---|---|
| Name | Locked |
| Class | 4xx Client Error |
| Defined in | RFC 4918 (WebDAV) |
| Cacheable by default | No, unless Cache-Control says so |
| Safe to retry automatically? | No: change the request first |
What causes HTTP 423?
- Another user or app has the file open with a lock.
- A stale lock left by a crashed client.
How do I fix HTTP 423?
- Wait for the lock to expire or release it from the owning client.
- Set reasonable lock timeouts so crashed clients do not block files forever.
What should a client do after HTTP 423?
Retry later, or provide the lock token if you own the lock.
Does HTTP 423 affect SEO?
No SEO impact.
Example 423 response
HTTP/1.1 423 Locked
Date: Mon, 01 Dec 2026 12:00:00 GMT
Content-Type: application/json
{"error":{"status":423,"message":"Locked"}} How to return 423 Locked in code
Express (Node.js)
res.status(423).json({ error: 'Locked' }); Next.js route handler
return Response.json({ error: 'Locked' }, { status: 423 }); FastAPI (Python)
raise HTTPException(status_code=423, detail="Locked") PHP
http_response_code(423); Nginx
location = /example {
return 423;
} Other 4xx status codes
The request contains an error or cannot be fulfilled as sent. Fix the request before retrying.
- 400 Bad Request
- 401 Unauthorized
- 402 Payment Required
- 403 Forbidden
- 404 Not Found
- 405 Method Not Allowed
- 406 Not Acceptable
- 407 Proxy Authentication Required
- 408 Request Timeout
- 409 Conflict
- 410 Gone
- 411 Length Required
- 412 Precondition Failed
- 413 Content Too Large
- 414 URI Too Long
- 415 Unsupported Media Type
- 416 Range Not Satisfiable
- 417 Expectation Failed
- 418 I'm a teapot
- 421 Misdirected Request
- 422 Unprocessable Content
- 425 Too Early
- 426 Upgrade Required
- 428 Precondition Required
- 429 Too Many Requests
- 431 Request Header Fields Too Large
- 451 Unavailable For Legal Reasons
- 499 Client Closed Request
Frequently asked questions
How do I clear a 423 Locked file in SharePoint or Nextcloud?
Is 423 used outside WebDAV?
Is 423 a client or server error?
Related
- 409 Conflict HTTP 409 Conflict means the request conflicts with the current state of the resource.
- 412 Precondition Failed HTTP 412 Precondition Failed means a condition the client set in a request header, such as If-Match or If-Unmo.
- 503 Service Unavailable HTTP 503 Service Unavailable means the server is temporarily unable to handle the request, because it is overl.
- Open the HTTP Status Codes Reference → Free, no signup.