412 Precondition Failed

The HTTP status meaning a condition in the request headers, such as If-Match, was not true, so nothing was changed.

In more detail

It protects writes from lost updates: if the ETag the client sends in If-Match no longer matches the current version, the server refuses the update instead of overwriting someone else’s change. The client should read the resource again, reapply its change and retry with the new ETag.

Related terms

Taught in

References