4xx Client Error

HTTP 409 Conflict

The request could not be completed due to a conflict with the current state of the target resource. This is typically used in situations where the user might be able to resolve the conflict and resubmit.

Common Causes

  • Trying to create a resource that already exists
  • Concurrent edit conflict (optimistic locking failure)
  • Version mismatch during an update operation
  • Conflicting state transition (e.g., publishing an already published item)

How to Fix

  1. 1Fetch the latest version of the resource and retry
  2. 2Resolve the conflict (merge changes) before resubmitting
  3. 3Use conditional requests (If-Match) for safe updates
  4. 4Check for duplicate entries before creating new ones

Example

HTTP 409 Conflict
POST /api/users HTTP/1.1
{ "email": "alice@example.com" }

→ 409 Conflict
→ "A user with this email already exists"

Related Client Error Codes