swepayError Catalog

Common · shared

Conflict 409

The request conflicts with the current state of the resource.

type https://errors.swepay.com.br/common/conflict

What this means

The request is well-formed, but it cannot be applied because it conflicts with the current state of the target resource. Typically a uniqueness rule or a lifecycle rule was violated — for example, creating a resource whose identifier or name already exists, or acting on a resource that is disabled or still being deleted.

Conflicts are about state, not input shape. For malformed input, see Validation Failed.

Common causes

  • A resource with the same identifier or unique name already exists.
  • The resource is in a state that does not allow the operation (disabled, or deletion still in progress).
  • Two concurrent requests raced to create or change the same resource.

How to resolve

Do not retry the same request unchanged — it will keep returning 409. Re-read the current state of the resource first. If an equivalent resource already exists, reuse it or pick a different identifier. If the resource is in a transitional state (for example, still being deleted), wait for that to finish and then retry.

Example response

HTTP 409 · application/problem+json
{
  "type": "https://errors.swepay.com.br/common/conflict",
  "title": "Conflict",
  "status": 409,
  "detail": "A resource with this identifier already exists.",
  "instance": "/v1/resources"
}

References

Machine-readable: /common/conflict.json