Skip to main content
HTTP/4xx (Client Error)

423 Locked

WebDAV: the resource being accessed is locked.

❓ Why does this happen?

Another user or process holds an exclusive lock on the file (SharePoint, Nextcloud, WebDAV clients).

✅ How to fix it

Wait for the lock to expire or release it with an UNLOCK request using the correct lock token.

Return or handle 423 in your stack

// app/api/resource/route.ts
export function GET() {
  return Response.json(
    { error: "Locked", status: 423 },
    {
      status: 423
    }
  );
}

Live 423 mock endpoint

Point your app, tests, or retry logic at this free public URL to reproduce a real 423 response (CORS enabled, optional ?delay=ms up to 5000).

https://castov.com/api/mock/423

Frequently Asked Questions

What does HTTP Status 423 mean?
WebDAV: the resource being accessed is locked.
Why am I getting a 423 status code?
Another user or process holds an exclusive lock on the file (SharePoint, Nextcloud, WebDAV clients).
How do I fix a 423 Locked error?
Wait for the lock to expire or release it with an UNLOCK request using the correct lock token.
How can I test how my app handles a 423 response?
Send a request to https://castov.com/api/mock/423 — it returns a real 423 Locked response with CORS enabled. Add ?delay=2000 to simulate a slow server.

Other 4xx status codes

Browse the full HTTP status codes directory or troubleshoot terminal errors in the Error Fix Encyclopedia.