HTTP status code 412 (Precondition Failed) means: A condition in the request headers was not met by the current version of the resource. Yes, a client error: the request was wrong or not allowed. Usually the link, the login or the data sent needs to change.
Is it an error?
Yes, a client error: the request was wrong or not allowed. Usually the link, the login or the data sent needs to change.
Common causes
- Conditional request headers do not match the current version
If you are visiting the site
- Reload the page
If you run the website
- Send correct ETag and Last-Modified headers for caching
- Validate input and return a clear error message
Frequently asked questions
What does HTTP 412 mean?
HTTP status code 412 (Precondition Failed) means: A condition in the request headers was not met by the current version of the resource.
Is HTTP 412 an error?
Yes, a client error: the request was wrong or not allowed. Usually the link, the login or the data sent needs to change.
How do I fix a 412 error?
If you are visiting the site: Reload the page. If you run the website: Send correct ETag and Last-Modified headers for caching; Validate input and return a clear error message.