Skip to content
opis.Nutrition API

← All error codes

invalid_state

Invalid state · HTTP 409

What it means

The operation is not allowed in the resource’s current status — for example confirming an analysis that is no longer requires_confirmation. The problem carries current_state.

What to do

Reconcile with current_state (status, cancellation reason, confirmation method) instead of retrying.

Example

{
  "type": "https://platform.opis.health/docs/errors/invalid_state",
  "title": "Invalid state",
  "status": 409,
  "detail": "…",
  "code": "invalid_state",
  "request_id": "req_01k68a9nytdxx0x5x0p47zgrm8"
}