Envie
ReferenceErrors

conflict

409 — the request was valid, but the resource's state changed underneath it.

https://docs.getenvie.com/errors/conflict · 409 — two writes raced, and this one lost.

Envie's write surface is deliberately idempotent almost everywhere (toggles converge, removes of missing items succeed, merges replay safely), so 409s are rare and usually mean two different actors changed the same thing at once.

Fix

Re-read the resource, then decide whether the operation still makes sense. A blind retry is usually wrong — the state you based the request on is gone. For POSTs sent with an Idempotency-Key, a retry with the same key safely returns the original result instead of racing again.

On this page