EN
4124xx Client errors

HTTP 412 Precondition Failed

A condition in the request headers was not met by the current version of the resource.

Quick answer

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?

4xx Client errors

Yes, a client error: the request was wrong or not allowed. Usually the link, the login or the data sent needs to change.

The problem is in the request: wrong address, missing permission or invalid data.

Common causes

  • Conditional request headers do not match the current version

If you are visiting the site

  1. Reload the page

If you run the website

  1. Send correct ETag and Last-Modified headers for caching
  2. 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.

4xx Client errors