HTTP 412 Precondition Failed

A condition in the request headers (If-Match, If-Unmodified-Since) was not met.

Updated

412
Precondition Failed
4xx Client error
Class
RFC 9110 §15.5.13
Defined in

What does HTTP 412 mean?

A condition in the request headers (If-Match, If-Unmodified-Since) was not met. Used for safe concurrent updates: the client sends the ETag it last saw, and the server rejects the update with 412 if the resource changed since then.

4xx Client error: The request has a problem the client can fix: wrong URL, missing credentials, bad data or too many requests.

How to fix 412 Precondition Failed

  • Re-fetch the resource and its current ETag, then retry.

412 and SEO

Not relevant for web pages.

Example response

HTTP/1.1 412 Precondition Failed

Related status codes

Check which status code a URL returns with the HTTP header checker.

All HTTP status codesSearch the full list of status codes from 100 to 599 with their meanings and SEO impact.
Open the full list

Frequently asked questions

What does status code 412 mean?
412 Precondition Failed: A condition in the request headers (If-Match, If-Unmodified-Since) was not met.
How do I fix a 412 error?
Re-fetch the resource and its current ETag, then retry.
Does 412 affect SEO?
Not relevant for web pages.