When you see this status
- Resource is locked by another process or user
- Concurrent modification conflicts occur
- File or record is temporarily unavailable
- Distributed lock manager denies access
Common causes
- Resource locked by another client
- Deadlock in database transactions
- File system permissions issue
- API rate limiting or throttling
How to debug it
- Check if another process holds the lock
- Verify resource availability and permissions
- Inspect server logs for deadlock details
- Retry after unlocking the resource
Return this code in your framework
Express (Node.js)
res.status(423).send('Resource locked');
FastAPI (Python)
return JSONResponse(status_code=423, content={'detail': 'Locked'});
NestJS
@HttpCode(423) @Get() getLocked() { throw new HttpException('Locked', 423); }
Go (net/http)
http.Error(w, "Locked", 423)
About HTTP 423
HTTP status code 423 Locked is part of the
4xx Client Error family. The requested resource is locked, preventing access until unlocked. Understanding it is essential for
backend engineers, API designers, and anyone debugging integrations between services.
The Qaynaq Labs HTTP Status Code Explainer covers all standard codes with practical guidance:
what triggers them, how to debug them in production, and exactly how to return them from common
frameworks. Each code page is hand-curated and verified.