@http · HTTP status codes, explained HTTP/1.1 409 Conflict ━━━━━━━━━━━━━━━━━━━━━ 4xx · Client error The request conflicts with the resource's current state. WHAT IT MEANS ──────────────────────────────────────────────────────────── The request conflicts with the current state of the resource. The user may be able to resolve the conflict and try again, so the body should explain it. WHY YOU'RE SEEING IT ───────────────────────────────────────────────────── → Creating something that already exists, such as a duplicate username. → Two people editing the same record at once. → Deleting something that other records still depend on. HOW TO FIX IT ──────────────────────────────────────────────────────────── → Explain the conflict in the response body, and what would resolve it. → For simultaneous edits, use ETag with If-Match; the server can then answer 412. EXAMPLE RESPONSE ───────────────────────────────────────────────────────── HTTP/1.1 409 Conflict Content-Type: application/json  {"error": "email_taken", "field": "email"} related 412 Precondition Failed   422 Unprocessable Content   428 Precondition Required spec RFC 9110 §15.5.10 https://www.rfc-editor.org/rfc/rfc9110#section-15.5.10 web https://athttp.com/409 ← curl athttp.com/408 curl athttp.com/410 →