httpstatuses/contents/codes/412.md
WALL-E 62df9e637c Add Python status constants (#57)
* Add Python status constants

* Add Python 2, Python 3+, Python 3.5+ status constants
2016-05-22 00:07:16 +01:00

911 B

set code title references
4 412 Precondition Failed
Rails HTTP Status Symbol Go HTTP Status Constant Symfony HTTP Status Constant Python2 HTTP Status Constant Python3+ HTTP Status Constant Python3.5+ HTTP Status Constant
:precondition_failed http.StatusPreconditionFailed Response::HTTP_PRECONDITION_FAILED httplib.PRECONDITION_FAILED http.client.PRECONDITION_FAILED http.HTTPStatus.PRECONDITION_FAILED

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.