Skip to content

conflict

HTTP 409 · code conflict

The request conflicts with the current state of the resource.

Sent by handlers through photonerr.Conflict(msg), for example when creating something that already exists.

Fetch the current state, resolve the conflict, and retry.

{
"type": "https://photon.agenticmarket.dev/errors/conflict",
"title": "conflict",
"status": 409,
"code": "conflict"
}

Match on the code field rather than on title, which is meant for people and may change. See all error codes.