It's important to echo the entire response. Failed dependency will be emitted in a following case:
- You are doing a PROPPATCH to update more than 1 property
- One of those properties fails (for example 403 Forbidden)
- The other properties now will automatically get 424 Failed Dependency, because the PROPATCH must either entirely succeed, or entirely fail.
My guess is that your server does not allow you to update one or more of those properties. {DAV:}lastmodified
in particular is in general a protected, and thus a read-only property that you are never allowed to change. It depends on the server if they do or do not actually allow you to do that, but in general it should fail.