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/423Frequently Asked Questions
What does HTTP Status 423 mean?
Why am I getting a 423 status code?
How do I fix a 423 Locked error?
How can I test how my app handles a 423 response?
Other 4xx status codes
Browse the full HTTP status codes directory or troubleshoot terminal errors in the Error Fix Encyclopedia.