424 Failed Dependency
The 424 HTTP status code is returned by the server when a requested operation cannot be completed because it relies on another action that has failed.
You can Check Your URLs HTTP Code for FREE
Introduction
In Action
Sample
Conclusion
Introduction
The 424 Failed Dependency status code is returned by the server when a requested operation cannot be completed because it relies on another action that has failed.
It is typically included as part of a 207 Multi-Status response, which provides multiple statuses for different parts of a request.
In this case, the server is letting the client know that one part of the request’s dependency has not been met, preventing the operation from proceeding.
In Action
The 424 Failed Dependency error message is specific to WebDAV, a file system used over HTTP. When received, this error is part of a 207 Multi-Status response, where success and failure indications coexist.
The client needs to interpret the response, identify the 424 error, and take appropriate action to resolve the dependency issue.
This status can be encountered during actions like PROPPATCH, where multiple properties are modified in a single HTTP request, and even if some properties are successful, the entire request fails due to the dependency problem with one property.
Sample
In the example, the client attempts to update both seat numbers and the name for a conference registration record. While seat updates are allowed, modifying the name is prohibited.
Due to the restriction on name changes, the server responds with a 403 Prohibited error, and consequently, the entire request, including seating updates, is denied and not processed.
Request
PROPPATCH /update.html HTTP/1.1
Host: www.example.com
Content-Type: applications/xml; charset=”utf-8”
Content-Length: 305
< ?xml version=”1.0″ encoding=”utf-8″ ?>
< d:propertyupdate xmlns:D=”DAV:”
< d:set>
< d:prop>
< d:seats>
< z:seatnumber>100</z:seatnumber>
< z:seatnumber>101</Z:seatnumber>
< /z:seats>
< /d:prop>
< d:prop>
< d:name>Smith</d:name>
< /d:prop>
< /d:set>
< /d:propertyupdate>
Response
HTTP/1.1 207 Multi-Status
Content-Type: application/xml; charset=”utf-8″
Content-Length: 528
< ?xml version=”1.0″ encoding=”utf-8″ ?>
< d:multistatus xmlns:d=”DAV:”>
< d:response>
< d:href>http://www.example.re/registrants/update.html< /d:href>
< d:propstat>
< d:prop><Z:seats/></d:prop>
< d:status>HTTP/1.1 424 Dependency Failed</d:status>
< /d:propstat>
< d:propstat>
< d:prop><z:name/></d:prop>
< d:status>HTTP/1.1 403 Forbidden</d:status>
< /d:propstat>
< d:responsedescription>The name of the registrant cannot be changed.
< /d:response>
< /d:multistatus>
Conclusion
The 424 Failed Dependency error is part of the WebDAV system and is used in a 207 Multi-Status response. It indicates that the requested operation cannot be completed because it depends on another action that has failed.
Users may encounter this status when performing multiple property modifications in a single request, and they should carefully parse the multi-status response to resolve any issues indicated by the 424 error.