2015-11-06 21:39:33 +01:00
|
|
|
---
|
|
|
|
set: 4
|
|
|
|
code: 412
|
|
|
|
title: Precondition Failed
|
2015-11-07 05:34:40 +01:00
|
|
|
references:
|
|
|
|
"Rails HTTP Status Symbol": ":precondition_failed"
|
2015-11-06 21:39:33 +01:00
|
|
|
---
|
|
|
|
|
2015-11-07 06:45:46 +01:00
|
|
|
The 412 Precondition Failed status code indicates that one or more conditions
|
2015-11-07 05:34:40 +01:00
|
|
|
given in the request header fields evaluated to false when tested on the server.
|
2015-11-07 06:45:46 +01:00
|
|
|
|
2015-11-07 05:34:40 +01:00
|
|
|
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][1]
|
|
|
|
|
|
|
|
[1]: <http://tools.ietf.org/html/rfc7232#section-4.2>
|