Qaynaq LABS · TOOLS

HTTP · 4xx Client Error

423 Locked

The requested resource is locked, preventing access until unlocked.

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

  1. Check if another process holds the lock
  2. Verify resource availability and permissions
  3. Inspect server logs for deadlock details
  4. 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.

Frequently asked

Can I retry a 423 response?

Yes, but only after ensuring the lock is released. Blind retries may cause contention.

Is 423 safe to cache?

No. The lock state may change, so caching 423 responses is not recommended.

How to unlock a resource programmatically?

Implement an endpoint or mechanism to release locks explicitly, e.g., via a lock token.