swepayError Catalog

CA Manager

Conflict 409

The request conflicts with the current state of the resource.

type https://errors.swepay.com.br/ca-manager/conflict

What this means

The request cannot be completed because it conflicts with the current state of a CA Manager resource. This typically means a uniqueness constraint or a state-machine rule was violated — for example, requesting a certificate with a subject that is already active, or acting on a certificate that has already been revoked.

Conflicts are about state, not input shape; the body itself is valid.

Common causes

  • A certificate with the same subject and key usage is already active.
  • The certificate was already revoked, renewed, or superseded.
  • Two concurrent requests raced to mutate the same resource.

How to resolve

Re-read the current state of the resource before retrying. If an equivalent certificate already exists, reuse it instead of issuing a new one. For concurrent writes, serialize your requests or use the returned state to reconcile. Blind retries will keep returning 409.

Example response

HTTP 409 · application/problem+json
{
  "type": "https://errors.swepay.com.br/ca-manager/conflict",
  "title": "Conflict",
  "status": 409,
  "detail": "An active certificate already exists for this subject and key usage.",
  "instance": "/v1/certificates"
}

References

Machine-readable: /ca-manager/conflict.json