4xx Client error

HTTP 409 Conflict

The request conflicts with the current state of the resource, such as an edit conflict or a duplicate.

409 Conflict means the request conflicts with the current state of the resource, so the server cannot apply it as it stands.

HTTP/1.1 409 Conflict

Common causes

  • Creating something that already exists, such as a user with a taken email.
  • Editing a resource that someone else changed in the meantime (an edit conflict).
  • Version control style conflicts in APIs that track revisions.

How to fix it

  • Fetch the current state, resolve the conflict and retry.
  • For safe concurrent edits, send If-Match with the ETag you read: the server then answers 412 instead of overwriting.

Related status codes

Other status codes

1xx Informational

2xx Success

3xx Redirection

5xx Server error

Search all HTTP status codes