What does 412 Precondition Failed mean?
A conditional header such as If-Match or If-Unmodified-Since did not match the current resource.
Common causes
- ETag changed since the client read the resource
How to fix it
- Re-read the resource and retry with the new ETag
412 and webhooks
Rare.
Test how your client handles 412
In the webhook tester you can add a response rule that answers 412 — useful to check retries, error handling and alerts before production.
FAQ
What does HTTP 412 mean?
A condition in the headers was false. A conditional header such as If-Match or If-Unmodified-Since did not match the current resource.
Is 412 an error?
Yes — a client error: the request must be changed before retrying.
Other 4xx codes
400 Bad Request · 401 Unauthorized · 402 Payment Required · 403 Forbidden · 404 Not Found · 405 Method Not Allowed · 406 Not Acceptable · 408 Request Timeout · 409 Conflict · 410 Gone · 411 Length Required · 413 Content Too Large · 414 URI Too Long · 415 Unsupported Media Type · 418 I'm a teapot · 422 Unprocessable Content · 425 Too Early · 426 Upgrade Required · 428 Precondition Required · 429 Too Many Requests · 431 Request Header Fields Too Large · 451 Unavailable For Legal Reasons · 499 Client Closed Request