Problem code
precondition_failed
| Status | 412 Precondition Failed |
| Type | https://api.librarika.dev.raynux.com/problems/precondition_failed |
| Title | Precondition failed |
| Retry | After you read the resource again. |
What it means
The resource changed since you read it: the If-Match value is not its current ETag.
What to do
Read the resource again, reapply your change to the current version, and send the new ETag.
Example
HTTP/1.1 412 Precondition Failed
Content-Type: application/problem+json
X-Request-ID: 01JD8Q3W6Y2N5K7M9P0R4S6T8V
{
"type": "https://api.librarika.dev.raynux.com/problems/precondition_failed",
"title": "Precondition failed",
"status": 412,
"code": "precondition_failed",
"detail": "The resource has changed since it was read. Fetch it again and retry with its current ETag.",
"request_id": "01JD8Q3W6Y2N5K7M9P0R4S6T8V"
}
The type URI https://api.librarika.dev.raynux.com/problems/precondition_failed is this page. The detail above is an example of the English text; it is translated into the request's language and may change, so match on code, never on detail.