httpstatuses/contents/codes/412.md
2015-11-07 05:45:46 +00:00

608 B

set code title references
4 412 Precondition Failed
Rails HTTP Status Symbol
:precondition_failed

The 412 Precondition Failed status code indicates that one or more conditions given in the request header fields evaluated to false when tested on the server.

This response code allows the client to place preconditions on the current resource state (its current representations and metadata) and, thus, prevent the request method from being applied if the target resource is in an unexpected state.

Source: RFC7232 Section 4.2