Skip to main content

412 - Precondition Failed

A condition in the request didn't match the current state of the resource. For example, an If-Match header might carry an older ETag for a file that has since changed.

What to check​

  1. Check which conditional headers you sent. Compare their values and documented behaviour with the current resource state.
  2. If the resource changed, fetch it again and reconcile your intended update with the current version before trying again. Don't drop the precondition just to make the request succeed.

Official reference​