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/409Frequently Asked Questions
What does HTTP Status 409 mean?
Why am I getting a 409 status code?
How do I fix a 409 Conflict error?
How can I test how my app handles a 409 response?
Other 4xx status codes
Browse the full HTTP status codes directory or troubleshoot terminal errors in the Error Fix Encyclopedia.