More
More
423 Locked
A WebDAV resource is locked.
- Code
423- Reason phrase
- Locked
- Class
- 4xx Client error
- Defined in
- RFC 4918 section 11.3
- Cacheable by default
- No
What it means
Client error: the problem lies with the request. Repeating it unchanged will normally fail again.
Common causes. Another user or program has the file open for editing.
What to do. Wait for the lock to be released.
How clients and crawlers treat it
Google Search. Like every 4xx except 429, it tells Google the content does not exist: an indexed URL is removed from the index, and a new one is not processed. Crawl frequency for the URL gradually drops. Source: Google Search Central, How HTTP status codes, and network and DNS errors affect Google Search.
Caching. Not cacheable by default (RFC 9110 section 15.1 does not list it). A cache stores it only when the response says so with Cache-Control or Expires.
Example response
HTTP/1.1 423 Locked Content-Type: text/plain; charset=utf-8 Locked
How to send 423
location /example {
return 423;
}
RewriteEngine On RewriteRule ^example$ - [R=423,L]
http_response_code(423); echo 'Locked'; exit;
res.writeHead(423, { 'Content-Type': 'text/plain' });
res.end('Locked');
# in a view function return 'Locked', 423
Change the paths to suit. In nginx, add_header needs always to apply to error responses.
Related codes
- 422Unprocessable ContentThe request is well formed but its data fails validation.
- 424Failed DependencyA WebDAV action failed because another action it depended on failed.
- 421Misdirected RequestThe request reached a server that cannot answer for this domain.
- 425Too EarlyThe server will not risk processing a request that might be replayed.
All status codes · All 4xx codes
Names and numbers from the IANA HTTP Status Code Registry. Google Search behaviour as documented by Google Search Central.