{
  "type": "https://errors.swepay.com.br/native-guard/step-up-totp-replayed-code",
  "service": "native-guard",
  "slug": "step-up-totp-replayed-code",
  "httpStatus": 409,
  "title": "Replayed TOTP Code",
  "summary": "The TOTP code sent to step up the session is correct but was already used.",
  "description": "Returned by `POST /identity/v1/realms/{realm}/stepup/totp` when the code\nverifies but was already consumed by an earlier step-up of the same user. A\ncode is single-use on this endpoint, across all of the user's sessions in\nthe realm.\n\nThis request did not elevate the session and issued no token. It does not\ncount as a failed attempt.\n",
  "commonCauses": [
    "The request was sent twice, for example by a double submit or an automatic retry after a timeout.",
    "The first request succeeded but its response was lost, and the client resent the same code.",
    "The same code was used to step up another session of the same user moments earlier."
  ],
  "clientAction": "Not retryable with the same code. Wait for the authenticator app to show the\nnext code — at most 30 seconds — and send that one. If the earlier request\nwith this code succeeded, its response already carried the elevated tokens;\nuse them instead of stepping up again.\n",
  "exampleResponse": {
    "type": "https://errors.swepay.com.br/native-guard/step-up-totp-replayed-code",
    "title": "Replayed TOTP Code",
    "status": 409,
    "detail": "This TOTP code has already been used.",
    "traceId": "Root=1-00000000-000000000000000000000000;Parent=0000000000000000;Sampled=0"
  },
  "relatedDocs": [
    {
      "label": "RFC 9457 — Problem Details",
      "url": "https://www.rfc-editor.org/rfc/rfc9457"
    },
    {
      "label": "RFC 6238 — TOTP",
      "url": "https://www.rfc-editor.org/rfc/rfc6238"
    }
  ],
  "category": "service",
  "deprecated": false,
  "documentation": "https://errors.swepay.com.br/native-guard/step-up-totp-replayed-code"
}