API error · HTTP 412
precondition_failed
Precondition failed
| HTTP status | 412 Precondition Failed |
|---|---|
code | precondition_failed |
title | Precondition failed |
| Retry? | Re-read, then retry |
What it means
The If-Match ETag sent with the PATCH is stale: the resource changed since you read it. The response carries the current ETag.
What to do
Re-read the resource (GET), merge your change, and retry the PATCH with the new ETag (§5).
Example response
Branch on code, never on title or detail. detail varies; quote request_id to support.
HTTP/1.1 412 Precondition Failed
Content-Type: application/problem+json
{
"type": "https://www.underwritinguk.ai/developers/errors/precondition_failed",
"title": "Precondition failed",
"status": 412,
"code": "precondition_failed",
"detail": "Precondition failed.",
"request_id": "7b0b1e5c-2f7e-4a52-9a43-5b0d0f0e9d11"
}All error codes · Error catalogue in the integration guide (§15) · Error handling and retries (§12.4)