409 Conflict
The request conflicts with the current state (e.g. duplicate or edit conflict).
Common causes
- Data conflict: duplicate key on create, editing a record someone else changed
- Updating with an old ETag / version
How to fix
- Reload the latest data and apply the change again
- On the server: return details of the conflicting record so clients can resolve it
Detailed reference (MDN) ↗RFC 9110 §15.5.10 ↗
Which code should I use?
- 409 / 412: 409: conflicts with the current state (duplicate data, two people editing at once). 412: an If-Match / If-Unmodified-Since condition failed (optimistic locking with ETag).
