> ## Documentation Index
> Fetch the complete documentation index at: https://docs-staging-quickstart-revamp.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

> Lists Guardian error codes and descriptions.

# Guardian Error Code Reference

Use the error codes to display informative messages and to distinguish between recoverable and unrecoverable errors.

<table class="table">
  <thead>
    <tr>
      <th>Error Code</th>
      <th>Description</th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td><code>invalid\_token</code></td>
      <td>Invalid request or transaction token</td>
    </tr>

    <tr>
      <td><code>insufficient\_scope</code></td>
      <td>You don't have enought grants to perform the requested operation</td>
    </tr>

    <tr>
      <td><code>invalid\_bearer\_format</code></td>
      <td>The bearer put in authentication header was not valid</td>
    </tr>

    <tr>
      <td><code>enrollment\_conflict</code></td>
      <td>There is another enrollment for the same user. You cannot enroll twice.</td>
    </tr>

    <tr>
      <td><code>tenant\_not\_found</code></td>
      <td>The tenant associated cannot be found. Should not normally happen at least that you delete the tenant</td>
    </tr>

    <tr>
      <td><code>login\_transaction\_not\_found</code></td>
      <td>The mfa auth transaction is not active or has already expired</td>
    </tr>

    <tr>
      <td><code>error\_sending\_push\_notification</code></td>
      <td>Push notification delivery failed</td>
    </tr>

    <tr>
      <td><code>push\_notification\_wrong\_credentials</code></td>
      <td>Push notification delivery failed because of wrong credentials</td>
    </tr>

    <tr>
      <td><code>invalid\_otp</code></td>
      <td>Provided otp code was not valid</td>
    </tr>

    <tr>
      <td><code>invalid\_recovery\_code</code></td>
      <td>Provided recovery code was not valid</td>
    </tr>

    <tr>
      <td><code>invalid\_body</code></td>
      <td>Body validation failed. Bad request.</td>
    </tr>

    <tr>
      <td><code>invalid\_query\_string</code></td>
      <td>Query string validation failed. Bad request.</td>
    </tr>

    <tr>
      <td><code>enrollment\_transaction\_not\_found</code></td>
      <td>The mfa enrollment transaction is not active or has expired</td>
    </tr>

    <tr>
      <td><code>invalid\_phone\_number</code></td>
      <td>The provided phone number is invalid</td>
    </tr>

    <tr>
      <td><code>error\_sending\_sms</code></td>
      <td>SMS Delivery error</td>
    </tr>

    <tr>
      <td><code>feature\_disabled</code></td>
      <td>The requested feature is currently globally not available (contact the provider)</td>
    </tr>

    <tr>
      <td><code>feature\_disabled\_by\_admin</code></td>
      <td>The requested feature is currently disabled by your admin</td>
    </tr>

    <tr>
      <td><code>pn\_endpoint\_disabled</code></td>
      <td>We were unable to deliver the push notification after retrying many times. Try removing you account for the device and adding it again.</td>
    </tr>

    <tr>
      <td><code>too\_many\_sms</code></td>
      <td>You have exeed the amount of SMSs assigned to your user</td>
    </tr>

    <tr>
      <td><code>too\_many\_pn</code></td>
      <td>You have exeed the amount of push notifications assigned to your user</td>
    </tr>

    <tr>
      <td><code>too\_many\_sms\_per\_tenant</code></td>
      <td>You have exeed the amount of SMSs assigned to your tenant</td>
    </tr>

    <tr>
      <td><code>too\_many\_pn\_per\_tenant</code></td>
      <td>You have exeed the amount of push notifications assigned to your tenant</td>
    </tr>

    <tr>
      <td><code>field\_required</code></td>
      <td>A field is required to perform the operation (this errors has a field attribute with a code for the field: <code>otpCode</code>, <code>recoveryCode</code>)</td>
    </tr>

    <tr>
      <td><code>method\_not\_found</code></td>
      <td>You have requested a method that is currently not supported (should not happen)</td>
    </tr>

    <tr>
      <td><code>no\_method\_available</code></td>
      <td>There is currently no method to enroll (all of them are disabled)</td>
    </tr>

    <tr>
      <td><code>enrollment\_method\_disabled</code></td>
      <td>The specified enrollment method is disabled, this error has also a .method field</td>
    </tr>

    <tr>
      <td><code>auth\_method\_disabled</code></td>
      <td>The specified authentication method is disabled, this error has also a .method field</td>
    </tr>

    <tr>
      <td><code>invalid\_otp\_format</code></td>
      <td>OTP format validation error</td>
    </tr>

    <tr>
      <td><code>invalid\_recovery\_code\_format</code></td>
      <td>Recovery code format validation error</td>
    </tr>

    <tr>
      <td><code>transaction\_expired</code></td>
      <td>The transaction has already expired</td>
    </tr>

    <tr>
      <td><code>already\_enrolled</code></td>
      <td>You are already enrolled, cannot enroll again</td>
    </tr>

    <tr>
      <td><code>not\_enrolled</code></td>
      <td>You not enrolled. Must enroll first</td>
    </tr>

    <tr>
      <td><code>invalid\_enrollment</code></td>
      <td>The enrollment provided to transaction#requestAuth method is not valid or is null/undefined</td>
    </tr>
  </tbody>
</table>
