Skip to content

precondition_failed

Error codeView as Markdown

The resource changed since you read it. The If-Match header did not match the current version of the resource. Someone changed it after you read it.

  • HTTP status: 412 Precondition Failed
  • CLI exit code: 1 (not signed in)
  • Retry: not as it is; the same request will fail the same way until the cause is fixed

GET the resource again and retry with the new ETag in If-Match.

{
"type": "https://guv.dev/errors/precondition_failed",
"title": "The resource changed since you read it",
"status": 412,
"code": "precondition_failed",
"detail": "The `If-Match` header did not match the current version of the resource.",
"fix": "GET the resource again and retry with the new ETag in If-Match.",
"docs_url": "https://guv.dev/errors/precondition_failed",
"request_id": "req_01jbx2m9k7q4r8t5v6w3y0z1rq"
}

The code field is stable: match on it, not on title or detail, which may be reworded.