Skip to content
opis.Nutrition API

← All error codes

precondition_failed

Precondition failed · HTTP 412

What it means

If-Match does not match the resource’s current ETag: it changed since you read it. The problem carries current_state.

What to do

Fetch the resource again, show the latest state to your user, and retry with the new ETag.

Example

{
  "type": "https://platform.opis.health/docs/errors/precondition_failed",
  "title": "Precondition failed",
  "status": 412,
  "detail": "…",
  "code": "precondition_failed",
  "request_id": "req_01k68a9nytdxx0x5x0p47zgrm8"
}