The 423 HTTP Status seems to be most relevant (RFC-4986):
The HTTP 423 Locked client error response status code indicates that a resource is locked, meaning it can't be accessed. Its response body should contain WebDav information (RFC-4918).
In XML:
HTTP/1.1 423 Locked
Content-Type: application/xml; charset="utf-8"
Content-Length: xxxx
<?xml version="1.0" encoding="utf-8" ?>
<D:error xmlns:D="DAV:">
<D:lock-token-submitted>
<D:href>/workspace/webdav/</D:href>
</D:lock-token-submitted>
</D:error>
But I would prefer JSON body.
{ "value" : "423",
"concept" : "http:\/\/webconcepts.info\/concepts\/http-status-code\/",
"id" : "http:\/\/webconcepts.info\/concepts\/http-status-code\/423",
"description" : "Locked",
"details" :
[
{ "description" : "The 423 (Locked) status code means the source or destination resource of a method is locked. This response SHOULD contain an appropriate precondition or postcondition code, such as 'lock-token-submitted' or 'no-conflicting-lock'.",
"documentation" : "https:\/\/datatracker.ietf.org\/doc\/html\/rfc4918#section-11.3",
"specification" : "http:\/\/webconcepts.info\/specs\/IETF\/RFC\/4918",
"spec-name" : "RFC 4918" } ] }