Start free · Free tools · Fair usage limits
Browse Tools

Categories

Custom AI Solutions – AI2Flows
LIVE NEWS
Loading latest AI & SEO news…
Home›Tools›HTTP Status Codes Reference›HTTP 409 Conflict
4xx Client Error

HTTP 409 Conflict

HTTP 409 Conflict means the request conflicts with the current state of the resource. Typical examples are creating a user whose email already exists…

Quick answer

HTTP 409 Conflict means the request conflicts with the current state of the resource. Typical examples are creating a user whose email already exists, editing a record someone else changed first, or a Git-style version mismatch. The client must resolve the conflict and retry.

Last updated · Maintained by FreeAIToolz · How we test

What does HTTP 409 Conflict mean?

APIs use 409 for uniqueness violations and optimistic-concurrency failures. When the client sent a version precondition (If-Match) that failed, 412 is the more precise code.

Status code409
NameConflict
Class4xx Client Error
Defined inRFC 9110 §15.5.10
Cacheable by defaultNo, unless Cache-Control says so
Safe to retry automatically?No: change the request first

What causes HTTP 409?

  • A unique field (email, username, slug) already exists.
  • Concurrent edits: the resource changed after the client read it.
  • Invalid state transition (cancelling an already shipped order).

How do I fix HTTP 409?

  1. Return details about the conflicting field or current version.
  2. Use ETags with If-Match for safe concurrent updates.

What should a client do after HTTP 409?

Fetch the latest state, merge or change the data, then retry.

Does HTTP 409 affect SEO?

No SEO impact; used by APIs and forms.

Example 409 response

HTTP/1.1 409 Conflict
Date: Mon, 01 Dec 2026 12:00:00 GMT
Content-Type: application/json

{"error":{"status":409,"message":"Conflict"}}

How to return 409 Conflict in code

Express (Node.js)

res.status(409).json({ error: 'Conflict' });

Next.js route handler

return Response.json({ error: 'Conflict' }, { status: 409 });

FastAPI (Python)

raise HTTPException(status_code=409, detail="Conflict")

PHP

http_response_code(409);

Nginx

location = /example {
    return 409;
}

Other 4xx status codes

The request contains an error or cannot be fulfilled as sent. Fix the request before retrying.

Frequently asked questions

409 vs 422 for a duplicate email?
Both are used. 409 emphasises a conflict with existing state; 422 frames it as a validation error. Pick one and use it consistently in your API.
409 vs 412?
Use 412 when the client sent If-Match or If-Unmodified-Since and it failed. Use 409 for other state conflicts.
Is 409 a client or server error?
409 is in the 4xx class, so it is classed as a client error: the request needs to change before it can succeed.