4xx Client Error
I couldn't do what you asked because something else you wanted me to do first didn't work out. It's like a domino effect - one failure caused this one.
Use 424 in WebDAV-style multi-step operations when this action failed only because a dependent action failed first.
PROPPATCH https://api.example.test/documents/report.doc
# Headers
Content-Type: application/xml
# Body
<?xml version="1.0"?>
<D:propertyupdate xmlns:D="DAV:">
<D:set><D:prop><D:displayname>Q4 Report</D:displayname></D:prop></D:set>
</D:propertyupdate>424 Failed Dependency
# Headers
Content-Type: application/xml
# Body
<?xml version="1.0"?>
<D:multistatus xmlns:D="DAV:">
<D:response>
<D:href>/documents/report.doc</D:href>
<D:status>HTTP/1.1 424 Failed Dependency</D:status>
</D:response>
</D:multistatus>A PROPPATCH request to update resource properties fails because the preceding LOCK operation it depended on was denied, making the property update impossible.
MOVE https://api.example.test/resource424 Failed Dependency
# Headers
Content-Type: application/json
# Body
{
"error": "failed_dependency"
}Property update failed because the file move operation it depended on failed
This file is currently being edited by someone else and they've locked it. You'll have to wait until they're done or unlock it.
WebDAVThere's a conflict - what you're trying to do clashes with something that already exists or the current state.
Your request looks right, but the data doesn't make sense according to our business rules. Fix the data and try again.