Skip to main content
HTTP/4xx (Client Error)

409 Conflict

Indicates that the request could not be processed because of conflict in the current state of the resource.

❓ Why does this happen?

Unique constraint database violation (e.g. duplicate email address), or concurrent edit conflicts.

✅ How to fix it

Resolve resource version mismatches or ensure unique identifier constraints are satisfied before retrying.

Return or handle 409 in your stack

// app/api/resource/route.ts
export function GET() {
  return Response.json(
    { error: "Conflict", status: 409 },
    {
      status: 409
    }
  );
}

Live 409 mock endpoint

Point your app, tests, or retry logic at this free public URL to reproduce a real 409 response (CORS enabled, optional ?delay=ms up to 5000).

https://castov.com/api/mock/409

Frequently Asked Questions

What does HTTP Status 409 mean?
Indicates that the request could not be processed because of conflict in the current state of the resource.
Why am I getting a 409 status code?
Unique constraint database violation (e.g. duplicate email address), or concurrent edit conflicts.
How do I fix a 409 Conflict error?
Resolve resource version mismatches or ensure unique identifier constraints are satisfied before retrying.
How can I test how my app handles a 409 response?
Send a request to https://castov.com/api/mock/409 — it returns a real 409 Conflict response with CORS enabled. Add ?delay=2000 to simulate a slow server.

Other 4xx status codes

Browse the full HTTP status codes directory or troubleshoot terminal errors in the Error Fix Encyclopedia.