Navigation
Introduction
HTTP Status Code 424-Failed Dependency is one of the classes of 4xx(Server Error) response code that indicates that the method could not be executed on the resource because the requested action was dependent on another action that failed.
If one of the instructions in a PROPPATCH method fails, the remainder of the commands will at the very least fail with 424. (Failed Dependency) (RFC 4918: HTTP Extensions for Web Distributed Authoring and Versioning (WebDAV)).
To indicate if a property change was successful or not, WebDAV employs HTTP status codes in response bodies. If a PROPPATCH is sent and one property change fails (for example, with 403 Forbidden), all subsequent property updates will fail with 424 Failed Dependency.
As a result, 424 Failed Dependency will only ever show in HTTP response bodies with a 207 Multi-Status response code, and never on an HTTP response status line.
Example
PROPPATCH /folder HTTP/1.1 Host: www.example.org Content-Type: application/xml <?xml version="1.0"?> <d:propertyupdate xmlns:d="DAV:"> <d:set> <d:prop> <d:getcontentlength>1</d:getcontentlength> <d:displayname>Evert</d:displayname> </d:prop> </d:set> </d:propertyupdate> |
Response:
HTTP/1.1 207 Multi-Status Content-Type: application/xml Content-Length: xxxx <?xml version="1.0"?> <d:multistatus xmlns:d="DAV:"> <d:response> <d:href>/folders</d:href> <d:propstat> <d:prop><d:displayname/></d:prop> <d:status>HTTP/1.1 424 Failed Dependency</d:status> </d:propstat> <d:propstat> <d:prop><d:getcontentlength /></d:prop> <d:status>HTTP/1.1 403 Forbidden</d:status> </d:propstat> </d:response> </d:multistatus> |
The above answer shows that getcontentlength could not be changed, resulting in a 424 error when attempting to update displayname.
FAQ
What do you mean by HTTP Status Code 424?
424 Status Code-Failed Dependency is one of the classes of 4xx(Server Error) response code that indicates that the method could not be executed on the resource because the requested action was dependent on another action that failed.
How 424 Status Code usage on Web?
Outside of WebDAV, this HTTP status code should generally not be utilized.
Status
424 Failed Dependency |
Related Articles
|
HTTP Status Code 204 – No Content |
HTTP Status Code 300-Multiple Choices |
HTTP Status Code 302 Found |
HTTP Status Code 207 Multi-Status |
424 CODE REFERENCES
Rails HTTP Status Symbol | failed_dependency |
Symfony HTTP Status Constant | Response::HTTP_FAILED_DEPENDENCY |
Conclusion
Finally, the 424 status code isn’t used very frequently these days.
I hope this article was able to help you with your doubts and queries related to the HTTP status code 422 Requested Range Not Satisfiable.
Still, if there are any queries related to this topic, feel free to ask in the comment section, we would be happy to assist you. Thank you.
Saurabh Chalise