HTTP 409 Conflict

A display above a rack server shows conflicting edits to the same original document

HTTP 409 Conflict means the server cannot complete the request because it conflicts with the target’s current state. The response can describe the conflict so the client can resolve it.

A write that races with another change

Two people can update the same document, or a client can try to create a username that has just been taken. Read the current resource and check the API’s error details. Merge the intended change, choose an available value or apply the documented conflict procedure.

Look for two attempts at the same operation

If a 409 appears only on a gateway path, correlate request IDs to see whether a client or intermediary repeated a write after a slow response. Compare the stored state with the action you intended. A request rejected because an explicit If-Match condition failed commonly uses 412 Precondition Failed.

Read the application’s conflict details

Suppose a calendar API returns 409 after you request a meeting room and the response includes a conflict code identifying an overlapping reservation. Read the room’s current availability and ask the caller to choose an open slot. Log the application error code with the request ID so support can identify the relevant business rule. Most useful conflict responses point to the current state that prevented the request, such as an occupied slot, a duplicate name or an order that already moved to the next stage.

Decide which request is safe to repeat

If an attempted write timed out before the 409, check whether the first attempt actually completed. When the API supports idempotency keys, review the documentation for how to reuse the same key for one logical operation and how to reconcile a previously recorded response. On your gateway, trace the original and retry request IDs through the logs. If one attempt succeeded, return or report that result to the caller. If the conflict is still present, change the intended operation only after checking the latest state.

RFC 9110.

All HTTP status codes · All proxy testing guides · Open the proxy tester