Error codes
How Authio reports errors on protocol endpoints, on the admin API and on the hosted screens, the HTTP status behind each kind of failure, and every code the API can answer with.
Authio answers errors in three places. Protocol endpoints speak OAuth 2.0, so the Authio libraries, like any standard one, understand them; the admin API wraps every error in its envelope, with a stable errorCode at the top; and the hosted screens show a failed sign-in on an error page with a reference code. All three carry the same codes underneath, so a failure reported by an integration can be matched to Authio’s logs.
Errors on protocol endpoints
The endpoints under /protocol/openid-connect/ answer with the fields of RFC 6749 §5.2 — error and error_description — plus error_code, the code behind the error. The Authio libraries throw them as AuthioProtocolError on Node.js and AuthioProtocolException on .NET, with the three fields as error, errorDescription and errorCode (Error, ErrorDescription and ErrorCode on .NET):
{
"error": "invalid_grant",
"error_description": "Authorization code expired!",
"error_code": "AuthorizationCodeExpired"
}error | HTTP | Codes behind it |
|---|---|---|
invalid_client | 401 | InvalidClientCredentials: a wrong secret or assertion, or one sent with a method the client is not registered for. Inactive: the client, or its realm, is switched off. |
invalid_grant | 400 | AuthorizationCodeNotFound, AuthorizationCodeExpired, AuthorizationCodeClientMismatch, DeviceCodeNotFound, MissingCodeChallenge, MissingCodeVerifier, InvalidCodeVerifier, RefreshTokenFailed, InvalidUserAuthentication, UserLockedOut, LockedOut, EmailNotConfirmed, UserSuspended, ConnectionSubjectTokenInvalid; OrganizationSsoRequired when the password grant proves the password of an account whose organization requires its own providers; ClientAccessDenied when it proves the password of an account the client does not admit; NetworkNotApproved when it proves the password from an address the account may not sign in from yet; PasswordExpired when the password it proves is due for renewal. |
invalid_request | 400 | InvalidRequest, InvalidRedirectUri, MissingGrantType, MissingCodeChallengeMethod, PkceMethodNotAllowed, RequiredFields, ConnectionRequestInvalid, a client that does not exist (NotFound), the refusals of a delegated token exchange (DelegationSubjectTokenRequired, DelegationSubjectTokenInactive, DelegationSubjectTokenTypeUnsupported, DelegationRequestedTokenTypeUnsupported, DelegationSubjectNotFound, DelegationClientNotFound, DelegationGrantNotFound, DelegationGrantAlreadyWithdrawn, DelegationNotPermitted, DelegationDepthExceeded), and any other refusal of the request itself. |
invalid_scope | 400 | InvalidScope: a scope the client has not enabled. DelegationScopesExceedGrant: an exchange asking for more than the delegation grant allows. |
invalid_target | 400 | InvalidTarget: a resource the client may not reach. ConnectionTargetInvalid, DelegationResourceExceedsGrant. |
unauthorized_client | 400 | GrantTypeDisabled; AccountNotEntitled when the subscription behind the application is not active; ConnectionClientUnauthorized when the client is not the introspection client of a resource server; ClientQuarantined when the client is in quarantine and the quarantine keeps the request out. |
unsupported_grant_type | 400 | UnsupportedGrantType |
unsupported_response_type | 400 | UnsupportedResponseType |
request_not_supported, request_uri_not_supported | 400 | RequestNotSupported, RequestUriNotSupported: Authio does not read request objects passed in request or request_uri. |
access_denied | 400 | A denied device request; McpIntegrationNotIncluded, ConnectedAccountsNotIncluded, IntegrationLicenseSuspended, ConnectionLimitExceeded or ConnectionExchangeLimitExceeded when the plan does not cover the request; an authorization that names an organization with Members only on, for somebody who is not a member (sent to the redirect_uri); and any other refusal the caller is not allowed past. |
connection_required, connection_selection_required, connection_policy_violation | 400 | ConnectionRequired, ConnectionSelectionRequired, ConnectionPolicyViolation: a connected account exchange that needs the user to connect, pick or reconnect an account. The answer also carries connect_uri, connection_provider and, when there are several, connections. |
invalid_client_metadata, invalid_redirect_uri | 400 | ClientRegistrationMetadataInvalid, ClientRegistrationRedirectUriInvalid on Dynamic Client Registration. |
invalid_token | 401 | A bearer token UserInfo refused, or ClientRegistrationInitialAccessTokenInvalid on Dynamic Client Registration. A realm that does not accept registrations answers 404 with ClientRegistrationDisabled. |
authorization_pending, slow_down, expired_token | 400 | Device flow polling: keep waiting, poll more slowly, or start again. The error_code repeats the same value. |
temporarily_unavailable | 429, 503 | 429 when a rate limit or the attack protection holds the caller back; 503 with TemporarilyUnavailable or ConnectionProviderUnavailable when a service Authio depends on failed for a moment. Retry later. |
server_error | 500 | Something failed on Authio’s side. |
Introspection and revocation never fail because of the token itself: an invalid, expired or unknown token gets 200 with active: false from introspection, and a plain 200 from revocation. UserInfo answers 401 with invalid_token, or 403 with insufficient_scope, each with a WWW-Authenticate header.
During a sign-in in the browser, errors are not JSON. Until the redirect_uri is proven, they are shown on the error page of the hosted screens, which displays the code as a reference the person can copy; after that, they go back to the redirect_uri with error, error_description, state and iss. The codes that only appear on that page are marked “Error page” in the tables below.
Errors on the admin API
The admin API answers every failure with its envelope: success is false, the HTTP status says what kind of failure it was, errorCode names it, and notifications explains it to a person. A validation error answers ValidationFailed and names each refused field, with the rule it broke in the notification’s code:
{
"statusCode": 400,
"success": false,
"notifications": [
{
"message": "The description is too long.",
"field": "description",
"code": "ValueTooLong"
}
],
"errorCode": "ValidationFailed",
"requestId": "0HN8R3K5QJ2VA:00000004"
}Codes are names, such as NotFound or AlreadyExists, and the same name can come from different areas: a missing realm and a missing client both answer NotFound. Read the code together with the endpoint you called, and keep the requestId when you report a problem. The envelope itself is described in Admin API. The admin clients of the SDKs throw the envelope as AuthioAdminError on Node.js and AuthioAdminApiException on .NET, with the HTTP status, errorCode, the notifications and the requestId: see Read what a refusal says.
HTTP status by kind of failure
Every error Authio raises declares what kind of failure it is, and each kind answers with one status. When an error carries no code of its own, the status picks a generic one, shown in the last column:
| Kind | HTTP | Meaning | Code when none is given |
|---|---|---|---|
Invalid | 400 | The request carried something the rules refuse. | ValidationFailed |
Unauthorized | 401 | The caller has not proven who they are, or the proof did not hold. | Unauthorized |
PaymentRequired | 402 | The action needs a plan or a payment the account does not have. | UnexpectedError |
Forbidden | 403 | The caller is known but may not do this. | Forbidden |
NotFound | 404 | What the request names does not exist, or is not visible to the caller. | NotFound |
Conflict | 409 | The request clashes with the current state of what it names. | Conflict |
Gone | 410 | What the request names existed once and is no longer available. | UnexpectedError |
Locked | 423 | What the request names is locked against the action. | UnexpectedError |
TooManyRequests | 429 | The caller sent too much and is held back for a while. | TooManyRequests |
NotImplemented | 501 | The action is not supported here. | NotImplemented |
UpstreamFailure | 502 | A service Authio depends on answered with a failure. | UpstreamFailure |
Unavailable | 503 | The capability is temporarily unavailable. | UpstreamFailure |
UpstreamTimeout | 504 | A service Authio depends on did not answer in time. | RequestTimeout |
Unexpected, anything else | 500 | A failure the caller could not have caused. | UnexpectedError |
Requests refused before they reach an endpoint use the same envelope: 400 with RequiredFields for a body or route value that cannot be read, 404 for an unknown route (NotFound), 405 for a method the route does not accept (MethodNotAllowed), 415 for a body that is not JSON (UnsupportedMediaType) and 429 for a rate limit (TooManyRequests).
Every code
The tables below list every code the API answers with, grouped by area. Where a code can answer with more than one status, both are shown; where it only appears on the hosted error page or in a redirect, the HTTP column says so.
Requests and the platform
| Code | HTTP | What it means | What to do |
|---|---|---|---|
ValidationFailed | 400 | The body broke a rule, or could not be read. Each notification names the field and the rule; see validation rules. | Fix the fields named in notifications. |
RequiredFields | 400 | A body or route value is missing or has the wrong type, so the request never reached the endpoint. | Send every field the endpoint requires, with the right type. |
HumanCheckFailed | 400 | The Cloudflare Turnstile token of a request that asks for one, such as creating an account without a session, was missing, already used, expired or refused. | Run the check again and send the new token; each token is good for one request. See human check. |
NotFound | 404 | The route or the resource does not exist, or belongs to another account. | Check the path and the IDs. |
MethodNotAllowed | 405 | The route exists but does not accept that HTTP method. | Use the method the endpoint documents. |
UnsupportedMediaType | 415 | The body was not sent as JSON. | Send Content-Type: application/json. |
Conflict | 409 | The change clashes with data saved meanwhile, or would duplicate a value that must be unique. | Read the resource again and retry. |
TooManyRequests | 429 | The rate limit was reached. | Wait the seconds in Retry-After. |
TemporarilyUnavailable | 503 | Authio could not reach its database or cache for a moment; nothing was changed. | Wait the seconds in Retry-After and send the same request again. |
UpstreamFailure | 502, 503 | A service Authio depends on failed or could not be reached. | Retry later. |
RequestTimeout | 504 | The request did not finish in the time allowed. | Retry later. |
NotImplemented | 501 | The operation is not available on this deployment. | Nothing to fix on your side; use another way to do it. |
UnexpectedError | 500 | Something failed on Authio’s side. | Retry; if it persists, contact support with the requestId. |
Validation rules
These codes appear in notifications[].code of a 400 ValidationFailed answer, one per refused field. The notification’s field says which value broke the rule.
| Code | HTTP | What it means | What to do |
|---|---|---|---|
ValueRequired | 400 | A required value was left out or empty. | Send the value. |
ValueTooLong | 400 | The value is longer than the field allows. | Shorten it. |
ValueTooShort | 400 | The value is shorter than the field requires. | Lengthen it. |
ValueLengthOutOfRange | 400 | The length of the value is outside the range the field allows. | Send a value within the length the message names. |
ValueOutOfRange | 400 | The number is outside the range the field allows. | Send a number within the range the message names. |
ValueNotAllowed | 400 | The value is not one of those the field accepts. | Send one of the accepted values. |
ValueMismatch | 400 | The value does not match the one it has to repeat, such as a password confirmation. | Send the same value in both fields. |
FormatInvalid | 400 | The value does not have the shape the field requires. | Follow the format the message describes. |
ValueInvalid | 400 | The value broke a rule that has no more specific code. | Read the message and fix the value. |
EmailInvalid | 400 | The e-mail address is not one Authio can send to. | Use a valid address. |
PhoneNumberInvalid | 400 | The phone number is not in international format, or has more than 15 digits. | Send it as + followed by the country code and number. |
UrlInvalid | 400 | The address is not an absolute http:// or https:// URL. | Send the full URL. |
HttpsUrlRequired | 400 | The address is not an absolute https:// URL. | Use https://. |
DateNotInFuture | 400 | The date is not in the future. | Pick a later date. |
ColorInvalid | 400 | The colour is not a hex value such as #1E88E5 or #FFF. | Send a hex colour. |
CustomCssUnsafe | 400 | The custom CSS holds something the sign-in pages refuse to load. | Remove imports, external URLs and scripts from the CSS. See hosted login. |
RealmIdInvalid | 400 | The realm ID is not made of lowercase letters, digits or hyphens within the allowed length. | Use a lowercase slug, such as acme-prod. |
HostEntryInvalid | 400 | A host is not a domain name, optionally starting with *., without a scheme, port or path. | Send only the host, such as app.example.com or *.example.com. |
ScopeNameInvalid | 400 | A scope name holds spaces, double quotes, backslashes or characters that cannot be printed. | Use a name such as orders:read. |
ClaimTypeReserved | 400 | The claim type is reserved by the protocol. | Pick another claim name. |
ClaimTypePlatformOwned | 400 | Authio writes that claim itself, so it cannot be set by hand. | Pick another claim name. |
RoleNameReserved | 400 | The role name is reserved by the platform. | Pick another name. |
RoleNameInvalid | 400 | The role name cannot travel in a URL path: it is . or .., or holds %2F. | Pick another name. |
RedirectUriInvalid | 400 | A redirect URI is not an absolute http:// or https:// address without a fragment, nor a private-use scheme a public client may use. | Fix the address. |
PostLogoutRedirectUriInvalid | 400 | A post-logout redirect URI is not an absolute http:// or https:// address without a fragment. | Fix the address. |
FrontChannelLogoutUriInvalid | 400 | The front-channel logout URI is not one absolute http:// or https:// address without a fragment. | Fix the address. |
BackChannelLogoutUriInvalid | 400 | The back-channel logout URI is not one absolute https:// address without a fragment. | Use an https:// address. |
DocumentUrlInvalid | 400 | The address of a published document, such as the terms of service or the privacy policy, is not an absolute http or https URL within the allowed length. | Send the full URL. |
ClientAuthMethodUnsupported | 400 | The client authentication method is not one Authio supports. | Pick a supported method. |
ClientSecretNotSettable | 400 | The client secret cannot be set by an update. | Rotate the secret instead. |
GrantTypeUnknown | 400 | No grant type has the identifier given. | Use an identifier from the grant type list. |
PkceMethodUnknown | 400 | No PKCE method has the identifier given. | Use S256 or plain. |
SignInStepUnknown | 400 | No sign-in step has the identifier given. | Use a step from the login flow list. |
AlgorithmCombinationInvalid | 400 | The token’s cryptographic algorithms do not work together. | Pick algorithms that combine. See token signing. |
SigningConfigurationInvalid | 400 | The ID token signing configuration is incomplete or contradictory. | Complete the signing settings. |
AccessTokenSigningAlgorithmInvalid | 400 | The access token signing algorithm does not suit the client’s key. | Pick an algorithm that matches the key. |
EncryptionConfigurationInvalid | 400 | The token encryption configuration is incomplete or contradictory. | Complete the encryption settings. |
ContentEncryptionUnsupported | 400 | Encrypted tokens cannot use AES-GCM content encryption. | Pick an A…CBC-HS… content encryption. |
TypeNotChangeable | 400 | A record keeps the kind it was created as. | Create a new record of the other kind. |
UniqueEmailRequired | 400 | Signing in by e-mail address requires unique e-mail addresses in the realm. | Turn on unique e-mail addresses first. |
TermsNotAccepted | 400 | The terms were not accepted. | Accept the terms. |
NotSelfEditable | 400 | That value cannot be changed on your own account. | Ask another administrator to change it. |
DeletionRequiresOwnRoute | 400 | An account is deleted through its own route, not by changing its status. | Call the delete endpoint. |
SecretValueGenerated | 400 | Authio generates the value of an API key, a client secret or a personal access token; none may be sent. | Leave the value out. |
SecretNotRotatable | 400 | Only an API key, a client secret or a personal access token can be rotated. | Create a new secret instead. |
RotationOverlapWithRevocation | 400 | A rotation cannot both keep the previous value working and revoke what it issued. | Choose one of the two. |
HmacKeyNotStored | 400 | HMAC keys are not stored: a client that signs with HS256, HS384 or HS512 signs with its secret. | Use the client secret, or pick an asymmetric algorithm. |
WebhookUrlInvalid | 400 | The webhook URL is not an absolute https:// address with a host. | Use an https:// URL. |
WebhookEventUnknown | 400 | An event the endpoint subscribes to does not exist. | Pick events from the event list. |
WebhookEventOutOfScope | 400 | An event the endpoint subscribes to is not raised where the endpoint is registered. | Subscribe to it on an endpoint of the right level. |
IdentityProviderEndpointsRequired | 400 | The identity provider publishes no fixed endpoints, so an authority or its endpoints are required. | Fill in the authority or the endpoints. |
ScopeIsClaim | 400 | A value asked for as a scope is a claim the provider refuses as one, such as xms_edov. | Remove it from the scopes. |
EndpointInvalid | 400 | The address Authio calls is not an absolute https address with a host and no fragment. | Fix the address. |
PrivateNetworkAddress | 400 | The address points at a private or local network, which Authio does not call. | Use a public address. |
ClaimNotIssuedByProvider | 400 | The setting reads a claim the selected provider does not issue. | Pick a claim the provider issues. |
AdminScopeInvalid | 400 | A value of an API secret’s adminScopes is not an admin API permission: it must read admin:{permission}:{method}, such as admin:realm:read. A realm scope such as realm:read is refused too. | Write each permission with the admin: prefix, a permission and a method of the admin API. |
Users and sign-in
| Code | HTTP | What it means | What to do |
|---|---|---|---|
Unauthorized | 401 | The call carries no valid credentials. | Send an API secret or a bearer token from the platform realm. |
Forbidden | 403 | The caller is authenticated but lacks the permission. | Grant the role, or allow it on the API secret. |
NotFound | 404 | The user does not exist, or belongs to another realm. | Check the user ID. |
SystemDataNotFound | 404 | The console data of the signed-in person was not found. | Sign in again; if it persists, contact support. |
CreateFailed, UpdateFailed | 400 | The user could not be created or changed; the notifications say why, such as a password the policy refuses. | Fix what the notifications name. |
AddRoleFailed | 400 | The role could not be given to the user. | Check the role and try again. |
AddClaimFailed | 400 | The claim could not be given to the user. | Check the claim and try again. |
TokenNotFound | 404 | The user token (such as a confirmation or reset link) was not found. | Ask for a new link. |
DeleteTokenFailed | 400 | A user token could not be removed. | Try again. |
TokenIsSecondFactor | 400 | The token named for deletion is the authenticator app’s key or the recovery codes ([AspNetUserStore]), which are no token and are not listed with the tokens. | Reset the authenticator app with DELETE /api/v1/admin/users/{userId}/mfa/totp, or turn your own off in Account Security. |
InvalidCredentials | 401 | The user name or the password is wrong. | Check them and try again. |
LockedOut | 401, 423 | Too many failed attempts: the account is locked for a while. | Wait until the lockout ends. |
SignInNotAllowed | 401 | Sign-in is not allowed for this account. | Ask an administrator of the realm. |
PasswordExpired | 401 | The password has to be renewed. The token endpoint answers it as invalid_grant. | Renew it through the link sent by e-mail. |
AccountNotConfirmed | 401 | The account has not confirmed what the realm requires, such as its e-mail address. | Confirm it, then sign in again. |
AccountInactive | 401 | The account was deactivated. | An administrator of the realm activates it again. |
ClientAccessDenied | 401, 400 | The credentials are right, but the account has no access to this application. The password grant answers it as invalid_grant (400). | Give the account access to the client. |
SubscriptionLapsed | 401 | The account has no active plan, so sign-in is paused. | Choose a plan to bring it back. |
FirstPurchasePending | 401 | The account was created on a paid plan that was never paid. | Finish the payment. |
InvalidTwoFactorCode | 400 | The two-factor code is not valid for this account. | Type the current code again. |
SecondFactorConfirmationRequired | 400 | Taking one of your own second factors off (the authenticator app, its recovery codes, a passkey or a phone), or adding one next to a factor you already have (turning the app on, pairing a phone, registering a passkey), needs proof that it is you, and the request sent none. data.methods lists by name, in this order, what the account can prove with, among AuthenticatorApp, RecoveryCode, Password and Passkey. | Send { "code": "…" } (the app’s code or a recovery code), { "password": "…" } or { "passkey": { "ceremonyId": "…", "assertion": … } } with a challenge from POST /api/v1/admin/users/me/passkeys/proof/options; turning the app on takes it under confirmation. With nothing listed, an administrator removes the factor, and the account cannot add another on its own. See Removing your own factor and Adding a factor when you already have one. |
SecondFactorConfirmationInvalid | 400 | The code, the password or the passkey sent to confirm the removal or the addition is wrong, a recovery code was already used, or the account has no such way. For a passkey the notice is on the passkey field: the challenge lapsed, was used or is somebody else’s, the passkey is another account’s or was removed meanwhile, the device did not verify the person, or the signature, origin or counter does not match. It counts toward the realm’s lockout. | Type the current code, an unused recovery code or the password again, or ask for a new challenge and confirm with the passkey again: each try spends its challenge. Once the lockout is reached the answer is LockedOut (423). |
InvalidCurrentPassword | 400 | The current password you typed is not your password. | Type your current password. |
InvalidUserName | 400 | The user name holds a character the realm does not allow. | Use only the characters the realm allows. See security policies. |
DuplicateUserName, DuplicateEmail | 409 | The user name or e-mail is already taken in the realm. | Use another one. |
InvalidTaxId | 400 | The tax ID is neither a valid CPF nor a valid CNPJ. | Check the number. |
DuplicateTaxId | 409 | The tax ID already belongs to another account. | Use the account that already holds it. |
OriginClientUnlinkNotAllowed | 409 | Removing that access would leave the user without the client they were created under. | Keep the access to the client the user was created under. |
ClientLinkNotAllowed | 403 | A credential limited to one client tried to give a person access to that client. | Use a credential that is not limited to the client. |
SystemUserDeletionNotAllowed | 409 | A console account cannot be deleted as a user; it leaves its team instead. | Remove the person from the team. |
AuthenticatorAppAlreadyEnabled | 409 | An authenticator app is already set up on the account. | Remove it before setting up another. |
AuthenticatorAppNotEnabled | 409 | The account has no authenticator app set up. | Set one up first. |
EnrolmentAlreadyHeld | 409 | The required enrolments (PUT /api/v1/admin/users/{userId}/required-enrolments) ask the person to register a passkey or a phone they already hold, so the next sign-in would ask nothing. | Nothing to do; the user already has it. |
UserSuspended | 401 | The user is suspended, so they cannot sign in, receive a token or use one they hold. | Lift or wait out the suspension. See suspensions. |
Account and team
| Code | HTTP | What it means | What to do |
|---|---|---|---|
AccountNotFound | 404 | No account matches the identifier. | Check the account ID. |
MemberNotFound | 404 | The member does not belong to this account. | Reload the team and pick the member again. |
MemberAlreadyExists | 409 | The address you invited already belongs to a member. | Nothing to do; they are on the team. |
UserBelongsToAnotherAccount | 409 | The person you invited already belongs to another account. | Invite another address, or ask them to leave the other team first. |
InvitationNotFound | 404 | No invitation matches the link. | Ask for a new invitation. |
InvitationNotPending | 410 | The invitation has lapsed, was revoked, or was already accepted. | Ask for a new invitation. |
InvitationAlreadyPending | 409 | That address already has an invitation waiting for an answer. | Resend or revoke the pending one. |
InvitationAddressMismatch | 403 | The invitation was sent to another address than the one accepting it. | Sign in with the invited address. |
SeatLimitExceeded | 402 | Every seat of the team is taken. | Free a seat or add seats. |
InvalidRole | 400 | The role is not one a member can be invited with or changed to. | Pick one of the team roles. |
OwnerOnlyAction | 403 | Only the account owner can do this. | Ask the owner. |
LastOwnerCannotLeave | 409 | The account would be left without an owner. | Transfer ownership first. |
TransferTargetNotEligible | 400 | Ownership can only go to an active member of the account. | Pick an active member. |
TransferConfirmationMismatch | 400 | The confirmation you typed does not match what the transfer asked for. | Type the confirmation exactly as shown. |
NotAPlatformUser | 403 | The signed-in person does not belong to the platform’s own realm, so no account can be founded for them in the console. | Sign up through the console. |
PlatformAccountNotBilled | 403 | The platform’s own account is not billed, so it has no plan, card or billing portal. | Nothing to do. |
CannotGrantCreditToOwnAccount | 400 | A platform operator tried to grant credit to their own account. | Another operator grants it. |
NoBillingCustomer | 400, 404 | The account never subscribed, so it has no billing customer for credit or the billing portal. | Subscribe to a plan first. |
AccountSecondFactorRequired | 403 | The account requires a second factor of you, the grace is over and you signed in without one, so your session carries none of the account’s permissions. | Turn on an authenticator app on your security page and sign in again with it. See Require a second factor of the team. |
SecondFactorSessionRequired | 403 | The action needs a session that signed in with a second factor: changing the account’s second-factor policy, or making or rotating an API key or a personal access token while the policy covers you. | Sign in again with your authenticator app, passkey or phone, then repeat the action. |
AccountSecondFactorUnavailable | 409 | The second-factor policy was turned on or widened while the console’s sign-in does not ask for the authenticator app, so a member without a factor would have nowhere to turn one on. | Keep the policy as it is for now. Turning it off or narrowing it is never refused for this. |
Realms and clients
| Code | HTTP | What it means | What to do |
|---|---|---|---|
NotFound | 404 | The realm or client does not exist, or belongs to another account. | Check the realm ID and the client ID. |
Forbidden | 401 | You may not change this client. | Use a credential with access to the client. |
AlreadyExists | 409 | A realm or client with that ID already exists. | Pick another ID, or read the existing one. |
Inactive | 403 | The realm or client is deactivated. On protocol endpoints this answers 401 invalid_client. | Activate it again. |
Reserved | 409 | The ID is reserved: authio, system, platform, admin, master and internal cannot be used. | Pick another ID. |
SystemProtected | 403 | The platform’s own realm and client cannot be taken out of service or put in quarantine. | Leave them active. |
InconsistentConfiguration | 400 | The client configuration contradicts itself and would prevent sign-in. | Fix the settings named in notifications. |
PublicClientHasNoSecret | 400 | A public client has no secret to rotate. | Make the client confidential first, if it needs a secret. |
DeprecatedEncryptionAlgorithm | 400 | The token configuration creates a client with, or moves one to, RSA1_5, which is legacy. A client already on it may keep it. | Use RSA-OAEP-256 (or RSA-OAEP) in encryptionAlgorithmKey. |
EmailTextInvalid | 400 | The client’s own e-mail text (PUT …/clients/{client}/email-texts/{kind}/{locale}) was refused, or the language is not one the e-mails are written in. | Fix the text named in notifications, and use a supported language. |
ClientGroupNotFound | 404 | The client group does not exist, or is not yours. | Check the group ID. |
ClientGroupAlreadyExists | 409 | A client group with that name already exists in the realm. | Pick another name. |
ClientGroupMemberNotFound | 404 | The client does not belong to the group. | Reload the group. |
ClientGroupMemberAlreadyGrouped | 409 | The client already belongs to another group. | Take it out of the other group first. |
ClientGroupMemberOutsideRealm | 400 | The client belongs to another realm than the group. | Pick a client of the same realm. |
Tokens and authorization
| Code | HTTP | What it means | What to do |
|---|---|---|---|
InvalidClientCredentials | 401 | The client secret or assertion is wrong, or sent with a method the client is not registered for. | Check the secret and the authentication method on the client. |
GrantTypeDisabled | 400 | The grant is not enabled on the client. | Enable it on the client. |
InvalidRequest | 400 | A required parameter is missing, or the request is otherwise malformed. | Read error_description and fix the request. |
InvalidRedirectUri | 400 | The redirect_uri does not equal a registered one. | Register the exact address: scheme, host, port, path and query. |
InvalidScope | 400 | A requested scope is not enabled on the client. | Enable it, or stop asking for it. |
MissingCodeChallenge | 400 | The client requires PKCE and the request carried no code_challenge. | Send code_challenge and code_challenge_method. |
MissingCodeChallengeMethod | 400 | The client requires PKCE and the request carried no code_challenge_method. | Send code_challenge_method=S256. |
PkceMethodNotAllowed | 400 | With PKCE on, the code_challenge_method is not one of the methods enabled on the client. With PKCE off, Authio accepts any method it supports (S256, plain) and checks the verifier, so the error means the method is not one Authio supports. | With PKCE on, send a method the client enables, or enable it. With PKCE off, send S256 or plain. |
MissingCodeVerifier | 400 | The client requires PKCE and the token request carried no code_verifier. | Send the verifier the challenge was made from. |
InvalidCodeVerifier | 400 | The code_verifier does not match the challenge. | Send the verifier the challenge was made from. |
AuthorizationCodeNotFound | 400 | The code was never issued, or was already exchanged. | Start the sign-in again; exchange each code once. |
AuthorizationCodeExpired | 400 | The code is valid for 30 seconds and was exchanged too late. | Exchange the code as soon as it arrives. |
AuthorizationCodeClientMismatch | 400 | The code was issued to another client or realm than the one exchanging it. | Exchange it with the client that started the sign-in. |
DeviceCodeNotFound | 400 | The device code was never issued, was issued to another client, or was already exchanged. | Start a new device authorization. |
authorization_pending, slow_down, expired_token, access_denied | 400 | Device flow polling: the user has not decided yet, you are polling too fast, the code expired, or the user declined. | Keep polling at the interval, slow down, or start again. |
RefreshTokenFailed | 400 | The refresh token was refused: spent, replayed, or its session or account is gone. | Sign the user in again. When a full suspension ended the session, the access log has the refusal with the person, as Account suspended. |
InvalidUserAuthentication | 400 | The user’s credentials sent with the password grant are wrong. | Check the user name and password. |
UserLockedOut | 400, 423 | The user is locked out after too many failed attempts. | Wait until the lockout ends. |
EmailNotConfirmed | 400, 401 | The user’s e-mail address is not confirmed. | Confirm it, then sign in again. |
JwtGenerationFailed | 400 | The token could not be built from the client’s token settings. | Check the client’s signing and encryption keys. |
UnsupportedGrantType | 400 | The grant_type is not one Authio issues. | Use one of the supported grants. |
MissingGrantType | 400 | The token request carried no grant_type. | Send grant_type. |
UnsupportedResponseType | Redirect | The response_type is not one Authio supports. | Use code. |
RequestNotSupported, RequestUriNotSupported | Redirect | The authorization request carried a request object in request or request_uri, which Authio does not read. | Send the parameters in the query string. |
InvalidTarget | 400 | The resource is not a resource server the client may reach. | Give the client access to the resource server. |
LoginFlowNotConfigured | Error page | The client has no login flow, so it cannot show a sign-in screen. | Set up the client’s login flow. |
SingleSignOnSessionNotFound | 404 | The single sign-on session has ended, expired or never existed. | Reload the sessions. |
GrantTypeNotFound | 404 | No grant type has that identifier. | Use an identifier from the grant type list. |
LoginFlowNotFound | 404 | No login flow has that identifier. | Use an identifier from the login flow list. |
PkceMethodNotFound | 404 | No PKCE method has that identifier. | Use an identifier from the PKCE method list. |
External identity providers
| Code | HTTP | What it means | What to do |
|---|---|---|---|
IdentityProviderNotFound | 404 | The realm has no identity provider with that alias or ID. | Check the alias. |
DuplicatedIdentityProviderAlias | 409 | The realm already has an identity provider with that alias. | Pick another alias. |
IdentityProviderTimeout | 504 | The identity provider did not answer in the time a sign-in allows. | Try again; check the provider’s status. |
ExternalSignInCancelled | Error page | The provider answered with an error: the person cancelled or refused there, or the provider turned the request down. | Start the sign-in again. |
ExternalAccountNotLinked | 403 | No account is linked to the external identity, and the provider is set not to create one. | Link the account first, or let the provider create accounts. |
ExternalAccountInactive | 403 | The account linked to the external identity is not active. | Activate the account. |
ExternalAccountEmailInUse | Error page | No account could be created for the external identity: its e-mail or user name already belongs to another account. | Sign in to that account and link the provider from it. |
ExternalSignInRefused | Error page | The linked account was found, but its sign-in was refused. | An administrator checks the account’s status. |
ExternalSignInFailed | Error page | The sign-in through the provider failed for a reason the person cannot act on. | Try again; if it persists, check the provider’s configuration. |
FederationMappingNotFound | 404 | The mapping rule does not exist, or belongs to a provider you do not administer. | Reload the rules. |
FederationMappingClaimRequired | 400 | The rule names no claim. | Name the claim the rule reads. |
FederationMappingValueRequired | 400 | The rule needs a value to compare and has none. | Fill in the value. |
FederationMappingRoleNotFound | 404 | The role does not exist, or is not one this provider’s realm may grant. | Pick a role of the realm. |
FederationRequiredClaimMissing | 403 | The provider did not send a claim a rule requires, so the sign-in was refused. | Make the provider send the claim, or relax the rule. |
InvalidIdentityProviderConfiguration | 400 | A SAML provider was turned on without its entity ID, single sign-on URL or a signing certificate. One notification names each value that is missing. | Fill them in, by hand or from the provider’s metadata, or save the provider turned off until you have them. |
SamlMetadataInvalid | 400 | The SAML metadata, read from its address or pasted, does not describe one usable identity provider. The message says why. | Use the metadata of a single identity provider, with its entity ID, a single sign-on service and a signing certificate. |
SamlMetadataUnreachable | 400 | The metadata address could not be read. | Use an address that is public, answers over https without redirecting and is reachable from the internet, or paste the metadata. |
SamlResponseInvalid | Error page | The provider’s SAML response was refused: not signed, or signed with a certificate not in force or with SHA-1; addressed to another service provider or another sign-in; expired or already used; with an encrypted assertion; or without a subject an account can be linked to (missing, transient or reassignable). | Fix it at the identity provider (SHA-256 signatures, assertion encryption off, a persistent NameID or a subject attribute) and sign in again. |
Dynamic client registration
| Code | HTTP | What it means | What to do |
|---|---|---|---|
ClientRegistrationDisabled | 404 | The realm does not accept dynamically registered clients, or does not exist. | Turn on dynamic registration on the realm. |
ClientRegistrationInitialAccessTokenInvalid | 401 | The realm asks for an initial access token and the request carried none, or one that may not create clients there. | Send a valid initial access token as a bearer token. |
ClientRegistrationMetadataInvalid | 400 | A metadata value is malformed or outside what the realm’s registration policy allows. | Fix the value named in error_description. |
ClientRegistrationRedirectUriInvalid | 400 | A redirect URI is malformed or outside what the realm’s registration policy allows. | Use a redirect URI the policy allows. |
Integration plans
| Code | HTTP | What it means | What to do |
|---|---|---|---|
IntegrationPlanStackNotSupported | 400 | No integration plan is written for that stack yet. | Follow the client’s integration guide for the stack instead. |
IntegrationPlanClientNotCompatible | 409 | The client cannot sign in through the stack: it is not allowed the authorization code grant, or allows only the plain PKCE method. The message names the setting. | Allow the authorization code grant, or S256, on the client and generate the command again. |
IntegrationPlanRealmNotAllowed | 403 | The client belongs to the platform’s own realm, for which no plan is written. | Generate the command from a client of one of your realms. |
IntegrationTicketInvalid | 401 | The ait_… code was already used, has expired (it lasts 10 minutes) or does not exist. | Generate another command with Set it up from your terminal in the client’s integration guide. |
IntegrationVerificationInvalid | 401 | The verification code has expired or does not exist, so it no longer answers about the first sign-in. | Check the first sign-in in the last step of the client’s integration guide, which still shows it. |
Organizations
| Code | HTTP | What it means | What to do |
|---|---|---|---|
OrganizationNotFound | 404 | The organization does not exist, or is not yours. | Check the organization ID. |
OrganizationAlreadyExists | 409 | An organization with that alias already exists in the realm. | Pick another alias. |
OrganizationMemberNotFound | 404 | The user is not a member of the organization. | Reload the members. |
OrganizationMemberAlreadyExists | 409 | The user already belongs to the organization. | Nothing to do. |
OrganizationMemberOutsideRealm | 400 | The user belongs to a client outside the organization’s realm. | Pick a user of the same realm. |
OrganizationDomainNotFound | 404 | The organization has not claimed that domain. | Reload the domains. |
OrganizationDomainAlreadyExists | 409 | The domain is already claimed, here or by another organization. | Remove the other claim first. |
OrganizationDomainVerificationFailed | 400 | The DNS record does not carry the value the claim expects. | Publish the TXT record shown and verify again. |
OrganizationIdentityProviderNotFound | 404 | The organization does not offer that identity provider. | Reload the providers. |
OrganizationIdentityProviderAlreadyExists | 409 | The organization already offers that identity provider. | Nothing to do. |
OrganizationIdentityProviderOutsideRealm | 400 | The identity provider belongs to another realm. | Pick a provider of the same realm. |
OrganizationSsoRequired | 403 · Error page | The account’s organization requires its own providers, and the sign-in used a password, a code, a passkey or another provider. The token endpoint answers it as invalid_grant. | Sign in through the organization’s provider. |
OrganizationSsoRequiresDiscovery | 400 | SSO required was turned on while the organization is not found by email domain. Names the field enforceSso. | Turn on discoverableByDomain, in the same request if you like. |
OrganizationSsoRequiresProvider | 400 | SSO required was turned on while the organization offers no active identity provider. Names the field enforceSso. | Offer an active provider first. |
OrganizationSsoLastProvider | 409 | The provider is the last active one of an organization with SSO required. | Offer another active provider, or turn SSO required off, first. |
OrganizationMemberRoleLimitExceeded | 400 | A member or an invitation would hold more than 20 distinct roles. Names the field roleIds. | Pick 20 roles at most. |
OrganizationInvitationNotFound | 404 | The invitation does not exist, or belongs to another organization. | Reload the invitations. |
OrganizationInvitationAlreadyPending | 409 | The organization already has an invitation pending and within its time for that address. Names the field email. | Resend the invitation that exists, or revoke it before inviting again. |
OrganizationInvitationNotPending | 409 | The invitation was already accepted or revoked, so it can be neither resent nor revoked. | Reload the invitations. To call the person again, send a new invitation. |
OrganizationInvitationResendTooSoon | 429 | The invitation’s last message went out less than 5 minutes ago. | Wait a few minutes and resend. |
OrganizationInvitationLimitReached | 409 | The organization already holds 500 invitations pending and within their time. | Revoke the ones that will not be used, or wait for them to expire. |
OrganizationInvitationClientCannotSignIn | 400 | The client has no http or https return address, so nobody signs in through it from a browser. Names the field clientId. | Pick another application, or register an https return address on the client. |
OrganizationInvitationContinueUrlNotAllowed | 400 | The continuation address is not an absolute http or https address, or is not at the origin of one of the client’s return addresses. Names the field continueUrl. | Use an address of the application’s site, or leave the field empty to use the default origin. |
OrganizationInactive | 409 | The organization is suspended and admits nobody, not even by invitation. | Reactivate the organization before inviting. |
Roles and groups
| Code | HTTP | What it means | What to do |
|---|---|---|---|
NotFound | 404 | The role does not exist. | Check the role name or ID. |
AlreadyExists | 409 | A role with that name already exists. | Pick another name. |
SystemRoleProtected | 403 | A system role cannot be changed or deleted. | Create a role of your own. |
NotAssignable | 400 | One of the roles is not yours to hand out, or is exclusive to an owner that does not reach whoever receives it, such as an organization member or an invitation. | Pick roles you may grant to that receiver. |
WiderThanCaller | 403 | The role would grant an admin API permission you do not hold yourself. | Narrow the role, or ask someone who holds the permission. |
GroupNotFound | 404 | The group does not exist, or is not yours. | Check the group ID. |
GroupAlreadyExists | 409 | A group with that name already exists on the client. | Pick another name. |
GroupMemberNotFound | 404 | The user is not a member of the group. | Reload the members. |
GroupMemberAlreadyExists | 409 | The user already belongs to the group. | Nothing to do. |
GroupMemberOutsideClient | 400 | The user belongs to another client than the group. | Pick a user of the same client. |
Scopes and resource servers
| Code | HTTP | What it means | What to do |
|---|---|---|---|
NotFound | 404 | The scope does not exist, or is not yours. | Check the scope name. |
AlreadyExists | 409 | The account already has a scope with that name, ignoring case. | Pick another name. |
Reserved | 409 | The name is defined by the protocol or the platform. | Pick another name. |
NotAssignable | 400, 403 | One of the scopes is not yours to hand out. | Pick scopes you may grant. |
ResourceServerNotFound | 404 | The resource server does not exist, or is not yours. | Check the ID. |
ResourceServerAlreadyExists | 409 | A resource server with that identifier already exists in the realm. | Use another identifier. |
ResourceServerIdentifierInvalid | 400 | The identifier is not an absolute http or https URI without a fragment. | Use a URI such as https://api.example.com. |
ResourceServerScopesRequired | 400 | The resource server has no scope. | Add at least one scope. |
ResourceServerScopeInvalid | 400 | A scope name is empty, too long, or holds a character a scope cannot hold. | Fix the scope name. |
ResourceServerScopeDuplicated | 400 | The same scope name was given twice. | Remove the duplicate. |
ResourceServerClientOutsideRealm | 400 | The client belongs to another realm, or does not exist. | Pick a client of the same realm. |
ResourceServerIntrospectionClientNotConfidential | 400 | The client chosen to introspect tokens is public, so it has no secret to prove itself with. | Pick a confidential client. |
Claim mappers
| Code | HTTP | What it means | What to do |
|---|---|---|---|
ClaimMapperNotFound | 404 | The rule does not exist, or is not yours. | Reload the rules. |
ClaimMapperClaimNameTaken | 409 | The client already publishes a claim under that name. | Pick another name, or edit the existing rule. |
ClaimMapperPropertyRequired | 400 | The rule reads a user property but names none. | Pick the property. |
ClaimMapperValueRequired | 400 | The rule publishes a constant but has no value. | Fill in the value. |
ClaimMapperNoDestination | 400 | The rule publishes into neither token, so it would never apply. | Turn on the access token, the ID token, or both. |
ClaimMapperReservedClaim | 400 | The claim would overwrite one the protocol reserves, one Authio writes itself or one a standard scope (profile, email, phone) releases. | Pick another claim name; for a claim a scope releases, request that scope instead. |
Secrets and signing keys
| Code | HTTP | What it means | What to do |
|---|---|---|---|
NotFound | 404 | The secret does not exist. | Check the secret ID. |
AlreadyExists | 409 | A secret with that name already exists. | Pick another name. |
AccessDenied | 403 | You may not use or change this secret. | Ask someone with access to it. |
WiderThanCaller | 403 | The secret you are creating, changing or rotating would reach further than you do: more realms, clients or permissions than you hold. Admin API permissions given to it directly that you do not hold are named in data.adminScopes. | Narrow the secret to what you hold. |
SecurityKeyNotFound | 404 | The signing key does not exist, or is not yours. | Reload the keys. |
SecurityKeyAlreadyRevoked | 409 | The key was already revoked. | Nothing to do. |
SecurityKeyOnlyActive | 409 | The key is the client’s only active one; revoking it would leave nothing to sign with. | Create or rotate to a new key first. |
SecurityKeyRevokedNotCurrent | 409 | A revoked key cannot become the current signing key. | Pick an active key. |
Passkeys and the authenticator app
| Code | HTTP | What it means | What to do |
|---|---|---|---|
NotEnabled | 400 | The client does not offer the passkey step. | Add the passkey step to the client’s login flow. |
ChallengeNotFound | 400 | No passkey challenge is open, or it expired. | Start the ceremony again. |
VerificationFailed | 401 | The authenticator’s answer did not match the challenge. | Try again with the same device. |
CredentialNotFound | 404 | The passkey is not registered, or belongs to someone else. | Use a registered passkey. |
CredentialAlreadyRegistered | 409 | The passkey is already registered, here or on another account. | Nothing to do, or use another device. |
NoCredentialsRegistered | 400 | The user has no passkey to sign in with, or to confirm it is them with (POST /api/v1/admin/users/me/passkeys/proof/options, POST /realms/{realm}/clients/{client}/webauthn/proof/options). | Register a passkey first, or confirm with a code from the app, a recovery code or the password. |
LastCredentialForPasswordlessUser | 409 | Removing this passkey would leave the account with no way in. It comes before any proof, so neither a recovery code nor a passkey challenge is spent. | Add another passkey or a password first. |
RelyingPartyNotConfigured | 500 | Passkeys are not configured on this deployment. | On a Dedicated environment, check the passkey settings in Configuration. |
EnrolmentInvalid | 400 | The pairing code was never issued, has lapsed, or was already used. | Show a new pairing code. |
DeviceLimitReached | 400 | The account already has as many paired phones as it may. | Remove a phone first. |
DeviceNotFound | 404 | The phone is not paired to this account, or was removed. | Reload the devices. |
NoDeviceEnrolled | 400 | The account has no phone that can be asked anything. | Pair a phone first. |
ChallengeNotAnswerable | 400 | The push question is unknown, has lapsed, or was already answered. | Start the sign-in again. |
SignatureInvalid | 401 | The phone’s signature does not match its registered key. | Pair the phone again. |
UserVerificationRequired | 400 | The question has to be approved with the phone’s fingerprint, face or screen lock, and was not. | Approve it with the phone’s lock. |
DeviceAuthorizationNotAnswerable | 400 | The scanned sign-in request is unknown, has lapsed, was already answered, or belongs elsewhere. | Scan the code shown now. |
SessionNotFound | 404 | The session is not one this account holds, or has ended. | Reload the sessions. |
PasswordResetUnavailable | 409 | The password reset this phone approved can no longer set the password: it lapsed, continued in the browser, or the password was already changed. | Start the reset again. |
PushNotEnabled | Error page | The client does not offer the push approval step. | Add the push step to the client’s login flow. |
PushNotConfigured | 500 | No push transport is configured on this deployment. | On a Dedicated environment, set the push variables in Configuration. |
Network access
| Code | HTTP | What it means | What to do |
|---|---|---|---|
NetworkAllowedIpNotFound | 404 | The allowlist entry does not exist, or belongs to a client you do not administer. | Reload the list. |
NetworkAllowedIpInvalid | 400 | The value is neither an address nor a block of addresses. | Send an IP, such as 203.0.113.7, or a CIDR block. |
NetworkAllowedIpAlreadyRegistered | 409 | The client already admits that address. | Nothing to do. |
NetworkAllowlistEmpty | 400 | The client is set to admit only listed addresses, and the list is empty. | Add an address before turning the allowlist on. |
NetworkUserIpNotFound | 404 | The address record does not exist, or belongs to a realm you do not administer. | Reload the list. |
NetworkUserIpAlreadyDecided | 409 | The address was already approved or blocked. | Nothing to do. |
NetworkApprovalChallengeInvalid | 400 | The approval link was not issued by Authio, or no longer answers for anything. | Sign in again to receive a new link. |
NetworkNotApproved | 403 | The credential is right, and the account may not sign in from this address yet: nobody has approved the address, or somebody blocked it. Answered to the password grant and to a device sign-in approved in the authenticator app from that address. The token endpoint answers it as invalid_grant. | Have the address approved, from the message sent to the account holder or by an administrator of the realm, then try again. Do not ask for the password again: it was right. |
Suspensions
| Code | HTTP | What it means | What to do |
|---|---|---|---|
UserSuspended | 401 | The user is suspended, so they cannot sign in, receive a token or use one they hold. | Lift or wait out the suspension. |
UserSuspensionNotFound | 404 | The suspension does not exist, or belongs to a user you do not administer. | Reload the suspensions. |
UserSuspensionSubjectNotFound | 404 | The person does not belong to the client, or does not exist. | Check the user ID. |
UserSuspensionSelf | 400 | You tried to suspend your own account. | Ask another administrator. |
UserSuspensionInvalidPeriod | 400 | The suspension would end before it starts, or has already ended. | Fix the dates. |
UserSuspensionEmptyScopes | 400 | A partial suspension names no scope to withhold. | Pick at least one scope. |
UserSuspensionScopesExceedClient | 400 | A partial suspension names scopes the person’s application never asks for. | Pick scopes of the client. |
UserSuspensionEmptyRoles | 400 | A permission revocation names no role, and does not withhold every role. | Pick roles, or withhold all of them. |
UserSuspensionRolesNotHeld | 400 | A permission revocation names roles the person does not hold. | Pick roles the person holds. |
UserSuspensionMustEndSessions | 400 | A full suspension has to end the person’s sessions. | Turn on ending the sessions. |
UserSuspensionNotActive | 409 | The suspension was already lifted or ran out. | Nothing to do. |
Delegation
| Code | HTTP | What it means | What to do |
|---|---|---|---|
DelegationGrantNotFound | 404 | The grant does not exist, or belongs to a realm you do not administer. | Reload the grants. |
DelegationGrantEmptyScopes | 400 | The grant has no scopes, so it would allow nothing. | Pick at least one scope. |
DelegationGrantDepthOutOfRange | 400 | The depth is outside what Authio will chain. | Pick a depth within the range the message names. |
DelegationGrantExpiryInPast | 400 | The grant would lapse at a moment already past. | Pick a future date. |
DelegationGrantExpiryTooFar | 400 | The grant would lapse further ahead than Authio allows. | Pick an earlier date. |
DelegationSubjectNotFound | 404 | The person does not belong to the realm, or does not exist. | Check the user ID. |
DelegationSubjectNotInOrganization | 400 | The person is not a member of the organization the grant is limited to. | Add them to the organization, or drop the limit. |
DelegationClientNotFound | 404 | The application does not belong to the realm, or does not exist. | Check the client ID. |
DelegationScopesExceedClient | 400 | The grant asks for scopes the application may not request at all. | Enable the scopes on the client, or remove them. |
DelegationResourceNotAllowed | 400 | The grant names a resource the application may not reach, or that no resource server of the realm has. | Pick a resource server the client may reach. |
DelegationGrantAlreadyWithdrawn | 409 | The grant was already withdrawn. | Nothing to do. |
DelegationNotPermitted | 403 | No grant lets this application act for this person. | Create a grant. |
DelegationScopesExceedGrant | 403 | The exchange asks for more than the grant allows; a delegation may only narrow. | Ask for fewer scopes. |
DelegationResourceExceedsGrant | 403 | The exchange names a resource the grant does not reach. | Ask for a resource the grant covers. |
DelegationDepthExceeded | 403 | The chain was already passed on as many times as the grant allows. | Raise the depth, or exchange closer to the source. |
DelegationSubjectTokenRequired | 400 | The exchange carried no subject_token. | Send the token to exchange. |
DelegationSubjectTokenInactive | 400 | The token to exchange is expired, revoked, or was not issued here, or the person it names is suspended, has an account switched off or no longer has access to the client they signed in to. | Send an active token. When the person is suspended, the account switched off or the link withdrawn, the access log has the refusal with the person. |
DelegationSubjectTokenTypeUnsupported | 400 | The subject_token_type is not one Authio exchanges. | Send an access token type. |
DelegationRequestedTokenTypeUnsupported | 400 | The requested_token_type is not one Authio issues from an exchange. | Ask for an access token. |
Impersonation
| Code | HTTP | What it means | What to do |
|---|---|---|---|
ImpersonationNotEnabled | 403 | The realm has not allowed impersonation. | Allow it in the realm settings. |
ImpersonationSubjectNotFound | 404 | The person does not belong to the realm, or does not exist. | Check the user ID. |
ImpersonationSubjectProtected | 403 | The person administers the platform and cannot be impersonated. | Pick another person. |
ImpersonationSubjectInactive | 403 | The person is not active. | Activate the account first. |
ImpersonationSubjectIsActor | 400 | You tried to impersonate yourself. | Pick another person. |
ImpersonationActorNotAPerson | 403 | Machine credentials cannot impersonate; only a signed-in person can. | Do it from a signed-in session. |
ImpersonationNotRecorded | 503 | The attempt could not be recorded, so no token was issued. | Try again. |
ImpersonationNotDeliverable | 409 | The realm delivers the token by redirect and the client has no redirect URI. | Register a redirect URI on the client. |
User export
| Code | HTTP | What it means | What to do |
|---|---|---|---|
PasswordHashExportNotOwner | 403 | Only the account’s Owner, or the Authio platform operator, may export password hashes. | Export without the hashes, or ask the Owner to export. |
PasswordHashExportNotAPerson | 403 | An API key or another credential asked for the password hashes; only a signed-in person may. | Export with the hashes from a signed-in session, or leave them out. |
UserExportRealmNotAllowed | 403 | The realm is the platform’s own, whose people cannot be exported. | Export one of your own realms. |
UserExportInProgress | 409 | Another export of this account is still being written. | Try again once it ends. |
UserExportNotRecorded | 503 | The export could not be recorded in the change trail, so nothing was sent. | Try again. |
Connected accounts
| Code | HTTP | What it means | What to do |
|---|---|---|---|
ConnectionProviderNotFound | 404 | The connection provider does not exist, or is not yours. | Check the alias. |
ConnectionProviderAlreadyExists | 409 | A connection provider with that alias already exists in the realm. | Pick another alias. |
ConnectionProviderAliasInvalid | 400 | The alias is not a lowercase slug of 2 to 64 characters. | Use an alias such as github-app. |
ConnectionProviderConfigurationInvalid | 400 | The provider configuration is incomplete or malformed: a missing endpoint, a non-https address, an unreadable path. | Fix the fields named in notifications. |
ConnectionProviderInactive | 400 | The provider is switched off. | Turn it on. |
ConnectionNotFound | 404 | The connected account does not exist, or belongs to another user. | Reload the connections. |
ConnectionSignInRequired | Error page | Connecting an account needs a signed-in session in the realm, and there was none. | Sign the user in, then start the connection. |
ConnectionStateInvalid | 400 | The provider answered a connection Authio did not start, or one already completed. | Start the connection again. |
ConnectionUserMismatch | 403 | The session finishing the connection belongs to another user than the one who started it. | Finish it with the same user. |
ConnectionDenied | 400 | The user declined at the provider, or the provider refused. | Start the connection again. |
ConnectionExchangeFailed | 502 | The provider refused to exchange the code or refresh the token. | Check the provider’s client ID and secret; reconnect. |
ConnectionIdentityUnreadable | 502 | The provider’s answer did not say which account was connected. | Check the provider’s user info settings. |
ConnectionProviderUnavailable | 503 | The provider did not answer in time, or could not be reached. | Retry later. |
ConnectionReauthRequired | 400 | The connection can no longer be used. | Ask the user to connect the account again. |
ConnectionRequired | 400 | The user has no usable connection for the provider. | Send the user to connect_uri. |
ConnectionSelectionRequired | 400 | The user has several connections for the provider and none is the default. | Pass the connection to use, or mark a default. |
ConnectionTargetInvalid | 400 | The provider is unknown, inactive, or not allowed for the resource server. | Allow the provider on the resource server. |
ConnectionSubjectTokenInvalid | 400 | The subject token is not active, or is not for a resource server this client introspects for, or the person it names is suspended, has an account switched off or no longer has access to the client they signed in to. | Send an active token issued for the resource server. When the person is suspended, the account switched off or the link withdrawn, the access log has the refusal with the person. |
ConnectionClientUnauthorized | 400 | The client is not the introspection client of any active resource server of the realm. | Set the client as the resource server’s introspection client. |
ConnectionRequestInvalid | 400 | The exchange request is malformed: a missing or unsupported parameter. | Read error_description and fix the request. |
ConnectionContextNotAllowed | 403 | The organization asked for is not an active organization of the user’s realm. | Pass an organization the user belongs to. |
ConnectionPolicyRejected | 403 | The account does not meet the organization’s connected accounts policy. | Connect an account the policy allows. |
ConnectionPolicyUnverifiable | 403 | The policy names GitHub organizations, and the provider’s token cannot read their memberships. | Add the read:org scope to the provider. |
ConnectionPolicyViolation | 400 | The connection no longer meets its organization’s policy. | Ask the user to connect an allowed account. |
ConnectionPolicyNotFound | 404 | The policy does not exist, or belongs to another organization. | Reload the policies. |
ConnectionPolicyAlreadyExists | 409 | The organization already has a policy for that provider, or a general one. | Edit the existing policy. |
ConnectionPolicyInvalid | 400 | The policy is malformed: an invalid domain or organization login, too many entries, or a provider outside the realm. | Fix the entries named in notifications. |
SCIM provisioning
The Scim* codes that refuse a directory are written under the SCIM base URLs, in SCIM’s error schema, with the scimType in brackets; the connection codes come from the connections’ admin API. See SCIM provisioning.
| Code | HTTP | What it means | What to do |
|---|---|---|---|
ScimInvalidFilter | 400 | The filter is not a single eq comparison on userName, externalId or emails.value (invalidFilter). | Filter on one of those attributes, with eq. |
ScimInvalidSyntax | 400 | The PATCH came without Operations, with an empty list or with an unknown op; no operation was applied (invalidSyntax). | Send add, replace or remove operations. |
ScimInvalidPath | 400 | A PATCH path does not read as a SCIM path (invalidPath). | Fix the path. |
ScimInvalidValue | 400 | userName is missing, or a value is too long, such as a subject over 128 characters, or of the wrong type (invalidValue). | Fix the value. |
ScimMutability | 400 | The PATCH tried to remove userName, or a connection of an organization tried to reactivate an account it did not create (mutability). | Keep userName; reactivate the account from the console. |
ScimResourceNotFound | 404 | The account does not exist, is out of the connection’s reach or was deprovisioned by it; or the resource does not exist, such as /Groups. | Create the account with POST /Users; turn off group provisioning in the directory. |
ScimUniqueness | 409 | The userName or the e-mail already belongs to another account, the externalId already belongs to another account of this connection, or the subject is already linked to another account at the provider (uniqueness). | Check the person in the directory and the account in Authio. |
ScimConnectionNotFound | 404 | No SCIM connection with that ID is in the realm. | Reload the connections. |
ScimConnectionRealmNotAllowed | 403 | The platform realm, the console’s own, accepts no SCIM connections. | Create the connection in one of your realms. |
ScimConnectionRevoked | 409 | The connection was revoked, so it can be neither edited nor have its token rotated. | Create a new connection. |
ScimConnectionNotRevoked | 409 | Only a revoked connection can be deleted. | Revoke the connection before deleting it. |
ScimConnectionIdentityProviderNotAllowed | 400 | A ValidationFailed notification on the identityProviderId field: the provider is not of the realm or, for a connection of an organization, is not offered to it. | Pick a provider of the realm offered to the organization. |
ScimConnectionClientNotAllowed | 400 | A ValidationFailed notification on the clientIds field: a client is not of the realm. | Pick clients of the realm, by client ID. |
Plan and billing
| Code | HTTP | What it means | What to do |
|---|---|---|---|
RealmLimitExceeded, ClientLimitExceeded, UserLimitExceeded, ConsumerLimitExceeded, SecretLimitExceeded, ResourceServerLimitExceeded, ConnectionLimitExceeded | 400 | The plan’s quota for that resource is used up. | Remove what you no longer use, or move to a larger plan. |
ConnectionExchangeLimitExceeded | 400 | The connected account token exchanges the plan allows this month are used up. | Wait for the next month, or move to a larger plan. |
NoActiveSubscription | 400 | The account has no active subscription. | Subscribe to a plan to create realms or clients. |
SubscriptionNotFound | 403 | The account has no subscription. | Subscribe to a plan. |
SubscriptionAlreadyHeld | 409 | The account already has a subscription. | Change the plan on it instead of buying again. |
PlanNotFound | 404 | The plan does not exist. | Pick a plan from the plan list. |
CheckoutPriceUnavailable | 400 | The price is not one of the plans on sale. | Reload the plans and pick again. |
InvalidCheckoutTicket | 400 | The checkout link is missing, expired, or belongs to an account no longer waiting on its first purchase. | Sign in and pick the plan again. |
InvalidReactivationToken | 400 | The reactivation link is missing, expired, or belongs to an account that cannot be reactivated. | Ask for a new link. |
AccountNotEntitled | 403 | The subscription behind the application is not active, so sign-in and token issuance are paused. | Renew the subscription. |
IntegrationLicenseSuspended | 403 | The subscription is cancelled, unpaid or past due beyond its grace, so integrations are paused. | Settle the payment. |
McpIntegrationNotIncluded, ConnectedAccountsNotIncluded | 403 | The plan does not include MCP tokens or connected accounts. | Move to a plan that includes them. |
ScimProvisioningNotIncluded | 403 | The plan does not include SCIM provisioning, so creating a connection, rotating its token and every call from the directory are refused. On the SCIM endpoints, the refusal is written in SCIM’s error schema. | Move to a plan that includes it; the connections work again. |
AuthLayoutNotIncluded | 403 | Customizing the login screens, or the client’s own e-mail texts, is not included in the plan. | Move to a plan that includes it. |
SharedTenancyNotIncluded | 403 | The account is on the Dedicated plan, so realms and clients are not created on the shared platform. | Create them in your environment’s own console. |
AiRunLimitExceeded | 400 | The plan’s AI runs for the period are used up, or what is left does not cover a run on the Advanced model, which counts 3. | Wait until the count starts again, use the Standard model, or move to a larger plan. |
AdvancedModelNotIncluded | 403 | The plan does not include the advanced AI model, so neither the account nor the assistant’s conversations can ask for it. | Use the Standard model, or move to a plan that includes the advanced model. |
PlanFeatureUnknown, PlanFeatureInvalidValue, PlanFeatureDuplicated | 400 | Platform operators only: a plan feature is not in the catalog, carries a value of the wrong kind, or was given twice. | Fix the feature list. |
PlanBillingProviderUnavailable | 502 | Platform operators only: Stripe could not be reached or refused the change to the plan. | Try again later. |
AI advisor
| Code | HTTP | What it means | What to do |
|---|---|---|---|
AiAdvisorNotIncludedInPlan | 403 | The AI advisor is not included in the plan. | Move to a plan that includes it. |
AiAdvisorNotEnabled | 409 | The advisor is not turned on for this realm or client. | Turn it on for that realm or client. |
AiAdvisorRequiresAccountOperator | 403 | Only a person signed in to the console can use the advisor; machine credentials such as API keys cannot. | Call it from a signed-in session. |
AiAdvisorNotConfigured | 503 | The advisor is not available on this deployment. | On a Dedicated environment, set ANTHROPIC_API_KEY in Configuration. |
AiAnalysisAlreadyRunning, AiConfigurationAlreadyRunning, AiAccessReviewAlreadyRunning, AiDashboardSummaryAlreadyRunning, AiChangeReviewAlreadyRunning, AiPushReviewAlreadyRunning, AiThreatReviewAlreadyRunning, AiAccessCertificationAlreadyRunning | 409 | The same reading is already being produced. | Wait for it to finish before asking again. |
AiAnalysisNotFound, AiConfigurationNotFound, AiAccessReviewNotFound, AiDashboardSummaryNotFound, AiChangeReviewNotFound, AiPushReviewNotFound, AiThreatReviewNotFound, AiThreatAnalysisNotFound, AiThreatActionNotFound, AiAccessCertificationNotFound, AiAccessCertificationItemNotFound, AiPortfolioReviewNotFound | 404 | The reading, proposal or item does not exist for the realm, client or account you asked about. | Reload the list and pick it again. |
AiConfigurationNotActionable | 409 | The proposal is not in a state that allows this: it carries no changes, was already applied, or was never applied. | Reload the proposal. |
AiConfigurationStale | 409 | The client changed after the proposal was made, so applying it would undo that change. | Ask for a new proposal. |
AiAccessReviewPeriodInvalid | 400 | The period must last at least one hour and at most 90 days, or the access log’s retention window if that is shorter, and end no later than now. | Pick a period within those bounds. |
AiChangeReviewPeriodInvalid, AiPushReviewPeriodInvalid, AiThreatReviewPeriodInvalid | 400 | The period is not one the advisor reads: it goes back more than 90 days or ends in the future. | Pick a shorter period. |
AiTokenShapeCarriesToken | 400 | The token shape sent for analysis carries the token itself. | Send the token’s shape without the token. |
AiThreatAnalysisNotRetryable | 409 | The attack analysis is not in a state that can be asked for again. | Wait for the current analysis to finish. |
AiThreatRecommendationNotApplicable | 409 | The recommendation of the attack analyst cannot be applied as it stands. | Ask for a new analysis. |
AiThreatActionAlreadyReverted | 409 | The applied recommendation was already undone. | Nothing to do. |
AiAppearanceNothingToDraftFrom | 400 | An appearance draft needs a website, a logo or a description to start from. | Give at least one of them. |
AiAppearanceSourceInvalid | 400 | The address to draft from is not a public http or https address. | Use a public website address. |
AiAccessCertificationNotSettled | 409 | The access certification is not finished, so nothing in it can be decided yet. | Wait for it to finish. |
AiAccessCertificationItemAlreadyDecided | 409 | The person’s access was already decided. | Undo the decision first, if you need to change it. |
AiAccessCertificationItemNotUndoable | 409 | That decision cannot be undone. | Change the person’s access directly. |
AiAccessCertificationDormancyInvalid | 400 | The number of days without a sign-in that marks access as idle must be between 30 and 365. | Pick a value in that range. |
Support
| Code | HTTP | What it means | What to do |
|---|---|---|---|
SupportTicketNotFound | 404 | The ticket does not exist, or is not yours to see. | Reload the tickets. |
SupportTicketClosed | 409 | The ticket is closed and takes no reply or change. | Open a new ticket. |
SupportTicketStatusNotAllowed | 409 | Your side of the ticket may not move it to that status from where it stands. | Pick a status your side may set. |
SupportTicketActionNotAllowed | 403 | Your side of the ticket may not do that, such as writing an internal note or escalating. | Ask the side that may. |
SupportTicketSubjectNotFound | 400 | What the ticket is about does not exist, or is not yours to name. | Pick the realm, client or record again. |
SupportTicketAssigneeNotEligible | 400 | The person you handed the ticket to cannot answer it. | Pick a member who answers tickets. |
SupportTicketRequesterHasNoAccount | 403 | You belong to no account, and a ticket is opened on an account’s behalf. | Join or create an account first. |
Attack protection
| Code | HTTP | What it means | What to do |
|---|---|---|---|
IncidentNotFound | 404 | No incident with that ID belongs to your account. | Reload the incidents. |
MitigationNotFound | 404 | No measure with that ID belongs to your account. | Reload the measures. |
SourceTrusted | 409 | The address you tried to block is trusted in the realm. | Stop trusting it in Trusted addresses first, or block another address. |
OwnSource | 409 | You tried to block, in the console’s own realm, the address you are using right now. | Block it from another network, or leave it: blocking it would lock you out of the console. |
TrustedSourceDuplicate | 409 | The realm already trusts this address or block, in some spelling. | Keep the one you have, or remove it before adding it again. |
TrustedSourceLimit | 409 | The realm already trusts as many addresses as it may (100). | Remove one you no longer need, or trust a block that covers several. |
TrustedSourceNotFound | 404 | No trusted address with that ID belongs to your account. | Reload the trusted addresses. |
ExposureNotFound | 404 | No exposed account with that ID is in a realm you administer. | Reload the exposed accounts. |
ReinforcementActive | 409 | The realm’s protection is already reinforced: a realm holds one reinforcement at a time. | Wait for it to run out, or end it with End now, before reinforcing again. |
ReinforcementNotFound | 404 | No reinforcement in force with that ID is in a realm you administer: it ran out, or was ended with End now. | Reload Sensitivity. |
SimulationInProgress | 409 | The realm already has a simulation waiting or running: one runs at a time per realm. | Wait for it to finish and read its result. |
SimulationNotFound | 404 | No simulation with that ID is in a realm you administer. | Run Simulate again. |
Client quarantine
| Code | HTTP | What it means | What to do |
|---|---|---|---|
ClientQuarantined | 400 | The client is in quarantine, and the quarantine keeps this sign-in or token request out. Protocol endpoints answer it as unauthorized_client. | Try again when the quarantine ends. |
ClientQuarantineActive | 409 | The client already has a quarantine in force. | Open the one in force, or end it before putting in another. |
ClientQuarantineEnded | 409 | The quarantine no longer stands: it was ended or ran out. | There is nothing left to end; reload the quarantine. |
ClientQuarantineNotFound | 404 | No quarantine with that ID is in a realm you administer. | Reload the quarantines. |
ClientQuarantinePersonNotFound | 400 | A person the quarantine or the policy lets in is not a person of the client’s realm. | Check the IDs in allowedUserIds. |
ClientQuarantineGroupNotFound | 400 | A group the quarantine or the policy lets in is not an active group of the client. | Check the IDs in allowedGroupIds. |
AiQuarantineBriefingNotFound | 404 | The AI reading is not one of this quarantine’s. | Reload the quarantine’s readings. |
AiQuarantineBriefingNotRetryable | 409 | The quarantine’s AI reading did not fail, so there is nothing to ask for again. | Read it as it is; only a reading that failed can be asked for again. |
Webhooks
| Code | HTTP | What it means | What to do |
|---|---|---|---|
CaptureSessionNotFound | 404 | No open capture session matches the address, or it expired. | Open a new capture session. |
Protocol bench
| Code | HTTP | What it means | What to do |
|---|---|---|---|
WireBenchSessionNotFound | 404 | The saved session does not exist, or belongs to another person or client. | Reload the sessions. |
WireBenchSnapshotTooLarge | 400 | The session is larger than Authio keeps for one session. | Save a smaller session. |
WireBenchSessionLimitReached | 409 | You already keep as many sessions of this client as allowed. | Delete a session first. |
Dedicated environment
| Code | HTTP | What it means | What to do |
|---|---|---|---|
DedicatedInstanceNotFound | 404 | The account has no environment yet, or it was deleted. | It is prepared as soon as the subscription is confirmed. |
DedicatedInstanceAlreadyExists | 409 | The account already has an environment. | Use the existing environment. |
DedicatedInstanceNotReady | 409 | The environment is not running, so it cannot be changed. | Try again once it is ready. |
DedicatedInstanceNotRetryable | 409 | The environment’s provisioning did not fail, so there is nothing to retry. | Wait for it to finish. |
DedicatedSubscriptionMissing | 409 | No live Dedicated subscription covers the account. | Subscribe to the Dedicated plan. |
DedicatedVariableNotEditable | 400 | The variable is managed by the platform. | Change only the variables listed in Configuration. |
DedicatedAdminCredentialUnavailable | 409 | The first administrator’s password was already shown and is no longer kept. | Use password recovery on your environment’s sign-in page. |
DedicatedDomainInvalid | 400 | The host names cannot be used: invalid, equal, not under the same domain, or under the platform’s domain. | Use two host names of yours under one domain. |
DedicatedDomainAlreadySet | 409 | The environment already has a domain of your own. | Remove it before adding another. |
DedicatedDomainNotReady | 409 | The domain’s certificates are not issued yet. | Check the DNS records and try again in a few minutes. |
DedicatedServiceNotRunning | 409 | The service has no running deployment. | Redeploy it to start it. |
DedicatedDeploymentNotFound | 404 | The deployment is not one of the environment’s recent deployments. | Reload the services and pick it again. |
DedicatedDeploymentNotCancellable | 409 | Only a deployment still being built or rolled out can be cancelled. | Nothing to cancel; redeploy if needed. |
DedicatedInstanceRemovalFailed | 502 | The hosting provider did not finish removing the environment. | Remove it again; it picks up where it stopped. |
DedicatedConfigurationNotWritten | 502 | The hosting provider did not write the environment’s configuration, so its services were not moved to the new version. | Update it again to retry. |