文档

公共状态码

本文档为您列出服务端接入过程中所遇到的错误码汇总。

公共状态码

Http状态码

Code

说明

200

Operation.Success

操作成功

500

Operation.Failure

操作失败

500

Operation.Failure.UnknownError

未知错误

500

Operation.Failure.DatabaseError

数据库操作异常

400

Params.Blank

参数为空,可通过Message字段定位详细信息,例如:应用外部ID为空 - Params.Blank.APIInvokeParams.ApplicationExternalId 认证方式标识为空 - Params.Blank.APIInvokeParams.ServiceCode认证类型标识为空 - Params.Blank.APIInvokeParams.Action

400

Params.Illegal

参数无效,可通过Message字段定位详细信息,例如:无效的认证标识 - Params.Illegal.APIInvokeParams.ServiceCode.Unsupported无效的认证类型标识 - Params.Illegal.APIInvokeParams.Action.Unsupported

500

Operation.Failure.Application.ResourceNotExist

应用不存在,通常是根据应用外部ID没有查询到应用

500

Operation.Failure.Application.HasBeenArchived

应用已经被删除

500

Operation.Failure.Application.HasBeenDisabled

应用已经被禁用

403

Operation.Denied

操作被禁止,可通过Message字段定位详细信息,例如:应用未授权认证方式 - APIInvokeError.ApplicationHasNoAuthority

500

Operation.Failure.Tenant.ResourceNotExist

租户不存在,即当前云账号尚未开通安全认证服务

500

Operation.Failure.Tenant.HasBeenDisabled

租户被禁用,即当前云账号开通的安全认证服务已经被禁用

500

Operation.Failure.Tenant.HasBeenArchived

租户被删除,即当前云账号开通的安全认证服务正在被注销

403

Operation.Denied.TenantNotFoundInContext

上下文中无租户信息

500

Operation.Failure.Verify.Signature

验证签名失败

500

APIInvokeError.ServiceInArrears

服务已欠费

500

Operation.Failure.ServiceCodeMismatchServiceImpl

服务路由错误,所选择的服务不支持指定的认证方式,通常不会发生此类错误

500

Operation.Failure.ApiInvoke.DependedServerUnavailable

内部服务调用异常,依赖服务不可用,例如网络连接错误

500

Operation.Failure.ApiInvoke.DependedServerUnknownError

内部服务调用异常,底层依赖服务发生未知错误

500

Operation.Failure.ApiInvoke.DependedServerReturnError

内部服务调用异常,底层依赖服务返回错误

500

Operation.Failure.ApiInvoke.DependedServerConfigError

内部服务调用异常,底层依赖服务配置错误

401

Operation.AuthenticationRequired

认证或者鉴权错误,通常是调用接口使用的AK对应的RAM账号,为赋予安全认证服务接口调用权限

TOTP

Http状态码

Code

说明

500

Operation.Failure.Otp.ResourceNotExist

令牌不存在

500

Operation.Failure.Otp.VerifyErrorForCodeWrong

验证口令错误

500

Operation.Failure.Otp.VerifyErrorForAuthenticatorStatusError

令牌被禁用

500

Operation.Failure.Otp.VerifyErrorForHexDecodedKeySeedError

令牌密钥解码失败

500

Operation.Failure.Otp.VerifyErrorForAuthenticatorTypeMismatch

认证器类型不匹配

500

Operation.Failure.Otp.VerifyErrorForTenantIdMismatch

此认证器不属于当前阿里云账户

500

Operation.Failure.Otp.VerifyErrorForApplicationIdMismatch

应用ID不匹配

500

Operation.Failure.Otp.UserAlreadyHasBoundKey

此用户已注册TOTP认证器

500

Operation.Denied.TenantNotFoundInContext

当前阿里云账户为开通服务

500

Operation.Failure.OTP.UnsupportedVerifyMode

不支持的VerifyMode

500

Operation.Failure.OTP.UnsupportedUniqueIdType

不支持的ID类型

500

Operation.Failure.OTP.UnsupportedAlgorithm

不支持的算法类型

500

Operation.Failure.OTP.UnsupportedKeyEncodeFormat

不支持的密钥加密类型

500

Operation.Failure.OTP.UserHasNoOTPAuthenticator

用户未绑定令牌

500

Operation.Failure.OTP.TimingFailed

用户绑定令牌失败

500

Operation.Failure.OTP.RegErrorForHexDecodedKeySeedError

HEX解码密钥失败

500

Operation.Failure.OTP.VerifyFailed

口令验证失败

500

Operation.Failure.OTP.RegErrorForParseOTPSecret

解析令牌密钥失败

500

Operation.Failure.OTP.RegErrorForChallengeInvalidOrExpired

挑战码过期或错误

500

Operation.Failure.OTP.RegErrorForBoundUserIdMismatch

用户ID不匹配

500

Operation.Failure.OTP.RegErrorForEncodeKeySeedToQrImg

密钥生成二维码失败

WebAuthn

Http状态码

Code

说明

500

Operation.Failure.Authenticator.InvalidRpId

webauthn认证器注册,错误的rp ip

500

Operation.Failure.Authenticator.UnsupportedType

不支持的认证器类型

500

Operation.Failure.Authenticator.ReplicatedAuthentication

重返的认证请求

500

Operation.Failure.Authenticator.ResourceNotExist

认证器不存在

500

Operation.Failure.Authenticator.DuplicateCredentialId

认证器已存在

500

Operation.Failure.Authenticator.InvalidChallenge

挑战码过期或错误

500

Operation.Failure.Authenticator.InvalidClientData

webauthn错误的attestationObject信息

500

Operation.Failure.Authenticator.UnsatisfiedRegistrationParse

未满足的webauthn注册请求

500

Operation.Failure.Authenticator.UnsatisfiedUserPresence

未满足的用户出席 webauthn请求

500

Operation.Failure.Authenticator.UnsatisfiedUserVerified

未满足的用户验证 webauthn请求

500

Operation.Failure.Authenticator.VerifyAuthenticationFailed

未满足的webauthn注册请求

500

Operation.Failure.Authenticator.WebAuthnExceededQuota

超过了webauthn quota限制

500

Operation.Failure.Authenticator.CredentialIdAlreadyExist

同一个CredentialId的认证器已经存在了

  • 本页导读 (0)
文档反馈