HTTP 4xx Client Error Status Codes/HTTP 412 Precondition Failed

Conditional request condition not met

Section: Codes 410-421

HTTP 412 Precondition Failed

text
text
curl -i -X PUT https://example.com/item/1 -H 'If-Match: "wrong"' -d '{"a":1}'
Explanation

Often used with `If-Match`, `If-Unmodified-Since`, or similar headers.

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing Codes 410-421
HTTP 410 Gone
Resource intentionally removed
OpenIn sheettextsame section
HTTP 411 Length Required
Missing required Content-Length
OpenIn sheettextsame section
HTTP 413 Content Too Large
Payload too large
OpenIn sheettextsame section
HTTP 414 URI Too Long
Request target too long
OpenIn sheettextsame section
HTTP 415 Unsupported Media Type
Request body media type not supported
OpenIn sheettextsame section
HTTP 416 Range Not Satisfiable
Requested byte range is invalid
OpenIn sheettextsame section