Errors

precondition_invalid

400: Precondition not usable.

Precondition not usable. Answered with 400.

What it means

The If-Match or If-None-Match header could not be read as a condition: an entity tag without its double quotes (If-Match: 3 rather than "3"), an empty header, * beside entity tags, both headers at once, or If-None-Match anywhere but on a write that creates, where it takes * alone. A condition that cannot be read is refused rather than dropped, so it never turns into an unconditional write.

What to do

Send If-Match with the version you read in double quotes, as the ETag header carried it (If-Match: "3") or If-Match: * for whichever version is there; send If-None-Match: * on a write that must only create; or leave both out for an unconditional write.

The body

{
  "type": "https://tigby.eu/problems/precondition_invalid",
  "title": "Precondition not usable",
  "status": 400,
  "detail": "…what was refused, naming this request's own values",
  "code": "precondition_invalid",
  "doc_url": "https://docs.tigby.eu/errors/precondition_invalid",
  "agent_hint": "…the next step, for software"
}

Branch on code. The detail names this request's own Handle, id or limit and is not part of the contract.