返回结果中的错误码表示了用户调用火山引擎 API 的结果。
| Error Code | Message | Http Status |
|---|---|---|
| ServiceFailure | The request processing has failed because of an unknown error | 500 |
| InvalidDescription | Invalid Description %s, err: %s | 400 |
| InvalidNewDescription | Invalid NewDescription %s, err: %s | 400 |
| InvalidLimit | Invalid Limit %d, err: %s | 400 |
| InvalidOffset | Invalid Offset %d, err: %s | 400 |
| ParameterNotFound | Parameter '%s' is required, but not found. | 400 |
| InvalidSite | Invalid Site '%s', err: '%s'. | 400 |
| InvalidTRN | TRN '%s' is not valid. | 400 |
| InvalidJsonStruct | %s has invalid json structure, err: '%s' | 400 |
| InvalidStatus | Invalid Status `%s`, err: %s. | 400 |
| AccessDeniedException | You do not have sufficient access to perform this action. | 400 |
| Error Code | Message | Http Status |
|---|---|---|
| InvalidAccessKeyId | Invalid accessKeyId '%s', err: '%s' | 400 |
| AccessKeyNotExist | The accessKey '%s' can not be found | 404 |
| InvalidAccessKeyStatus | Invalid accessKey status: '%s', err: '%s' | 400 |
| AccessKeyLimitExceeded | Exceed account accessKey quota: '%d' | 409 |
| ErrorCreateAccessKey | Generate accessKey error: '%s' | 400 |
| AccessKeyIsExpire | The accessKey '%s' is expired. | 400 |
| SessionTokenInvalid | The session-toke is invalid. | 400 |
| Error Code | Message | Http Status |
|---|---|---|
| AccountNotExist | Account '%s' cannot be found. | 404 |
| AccountNotVerified | The Account '%v' is not verified. | 400 |
| InvalidAccountName | The Account '%v' is not verified. | 400 |
| Error Code | Message | Http Status |
|---|---|---|
| UserNotExist | User '%s' cannot be found. | 404 |
| UserAlreadyExists | User '%s' already exists. | 409 |
| InvalidUserName | Invalid UserName '%s', err: '%s'. | 400 |
| InvalidNewUserName | Invalid NewUserName '%s', err: '%s'. | 400 |
| InvalidDisplayName | Invalid DisplayName '%s', err: '%s'. | 400 |
| InvalidNewDisplayName | Invalid NewDisplayName '%s', err: '%s'. | 400 |
| InvalidMobilePhone | Invalid MobilePhone '%s', err: '%s'. | 400 |
| InvalidMobilePhoneIsVerify | Invalid MobilePhoneIsVerify '%s', err: '%s'. | 400 |
| InvalidNewMobilePhone | Invalid NewMobilePhone '%s', err: '%s'. | 400 |
| InvalidEmail | Invalid Email '%s', err: '%s'. | 400 |
| InvalidNewEmail | Invalid NewEmail '%s', err: '%s'. | 400 |
| InvalidEmailIsVerify | Invalid EmailIsVerify '%s', err: '%s'. | 400 |
| InvalidPassword | Invalid Password '%s', err: '%s'. | 400 |
| UserDeleteConflictWithRole | Cannot delete user '%s' which added to role(s). | 409 |
| UserDeleteConflictWithPolicy | Cannot delete user '%s' which added to policy(s). | 409 |
| UserDeleteConflictWithAccessKey | Cannot delete user '%s' which added to ak(s). | 409 |
| AddUserToRoleConflict | User '%s' already be added to the role '%s'. | 409 |
| RemoveUserFromRoleConflict | User '%s' not be added to to the role '%s'. | 409 |
| LoginProfileAlreadyExist | LoginProfile for User '%s' already exist. | 409 |
| LoginProfileNotExist | LoginProfile for User '%s' not exist. | 404 |
| PasswordNotMatch | Password you provided donot match password in DB. | 403 |
| InvalidLoginIp | Invalid LoginIp '%s', err: '%s'. | 400 |
| LoginNotAllowed | User '%s' doesn't have authority to login, please configure by IAM console | 403 |
| Error Code | Message | Http Status |
|---|---|---|
| ErrInvalidThirdPartyPersonalIDPType | Invalid IDPType: `%v`, err: `%v`. | 400 |
| ErrInvalidThirdPartyIdentityID | Invalid ThirdPartyIdentityID: `%v`, err: `%v`. | 400 |
| ErrInvalidThirdPartyIdentityName | Invalid ThirdPartyIdentityName: `%v`, err: `%v`. | 400 |
| ErrInvalidPlatformIdentityID | Invalid PlatformIdentityID: `%v`, err: `%v`. | 400 |
| ErrInvalidPlatformIdentityType | Invalid PlatformIdentityType: `%v`, err: `%v`. | 400 |
| ErrBindThirdPartyPersonalIdentityConflict | %v `%v` already be bound. | 409 |
| ErrBindThirdPartyEnterpriseIdentityConflict | %v `%v` already be bound. | 409 |
| ErrorUnbindThirdPartyPersonalIdentityConflict | `%v[%v]` has not be bound to `%v[%v]`. | 409 |
| ErrInvalidThirdPartyEnterpriseIDPType | Invalid IDPType: `%v`, err: `%v`. | 400 |
| ErrInvalidThirdPartyEnterpriseID | Invalid EnterpriseID: `%v`, err: `%v`. | 400 |
| ErrInvalidThirdPartyEnterpriseName | Invalid EnterpriseName: `%v`, err: `%v`. | 400 |
| ErrBindThirdPartyEnterpriseConflict | %v `%v` already be bound. | 409 |
| ErrAssociatedThirdPartyEnterpriseNotExist | Associated third-party Enterprise not exist. | 400 |
| ErrAssociatedAccountNotExist | Associated Account not exist. | 400 |
| ErrAssociatedUserNotExist | Associated User not exist. | 400 |
| ErrBindPersonalIdpLimit | Exceed personal IDP quota: '%d'. | 400 |
| Error Code | Message | Http Status |
|---|---|---|
| PolicyNotExist | Policy '%s' does not exist or is not attachable. | 404 |
| PolicyAlreadyExist | Policy '%s' already exists | 409 |
| InvalidPolicyName | Invalid PolicyName '%s', err: '%s' | 400 |
| InvalidPolicyType | Invalid PolicyType '%s', err: '%s' | 400 |
| MissingPolicyDocument | Missing policy document | 400 |
| InvalidPolicyDocumentJson | Policy document has invalid json structure, err: '%s' | 400 |
| MissingPolicyStatement | 400 | |
| MissingEffectField | 400 | |
| InvalidEffectField | Invalid Effect in policy document, err: '%s' | 400 |
| MissingActionField | 400 | |
| InvalidActionField | Invalid Action in policy document, err: '%s' | 400 |
| MissingPrincipalField | 400 | |
| InvalidPrincipalField | Invalid Principal in policy document, err: '%s' | 400 |
| PolicyDeleteConflict | Cannot delete policy '%s' which attached to role(s) | 409 |
| PolicyAttachConflict | Policy '%s' already be attached to '%s' | 409 |
| PolicyDetachConflict | Policy '%s' not be attached to '%s' | 409 |
| InvalidPolicyScope | Invalid Scope %s, err: %s | 400 |
| InvalidPolicyEntityFilter | Invalid EntityFilter %s, err: %s | 400 |
| Error Code | Message | Http Status |
|---|---|---|
| RoleNotExist | Role '%s' cannot be found | 404 |
| RoleAlreadyExists | Role '%s' already exists. | 409 |
| RoleNameAlreadyExists | NewRoleName %s already exists | 409 |
| InvalidRoleName | Invalid RoleName '%s', err: '%s' | 400 |
| AccountRoleLimitExceeded | Cannot exceed Quota for '%s': '%d' | 409 |
| RoleDeleteConflictWithPolicy | Cannot delete role '%s', must detach all policies first | 409 |
| RoleDeleteConflictWithUser | Cannot delete role '%s', must remove all users first | 409 |
| InvalidTrustPolicyDoc | Invalid TrustPolicy, err: '%s'. | 400 |
| InvalidAssociatedAccountType | Invalid AssociatedAccountType `%s`, err: `%s`. | 400 |
| RoleConfigAlreadyExists | RoleConfig '%v' already exists. | 409 |
| Error Code | Message | Http Status |
|---|---|---|
| IdentityProviderNoHandler | IdentityProvider '%s' has no handler function exist. | 400 |
| IdentityProviderNoUserInfo | Cannot get userInfo, please try again or please contact with admin. | 400 |
| IdentityProviderNotExist | IdentityProvider %s not exist | 400 |
| IdentityProviderAlreadyExists | IdentityProvider %s already exist | 409 |
| AppAlreadyExists | App %s already exists | 409 |
| AppNotExist | App %s not exist | 400 |
| AppNameAlreadyExists | AppName %s is already used | 409 |
| InvalidAppName | Invalid AppName %s, err: %s | 400 |
| InvalidAppID | Invalid AppID %s, err: %s | 400 |
| InvalidAppSecret | Invalid AppSecret %s, err: %s | 400 |
| InvalidIdpName | Invalid IdpName %s, err: %s | 400 |
| InvalidIdpType | Invalid IdpType %s, err: %s | 400 |
| InvalidIdpScope | Invalid IdpScope %s, err: %s | 400 |
| Error Code | Message | Http Status |
|---|---|---|
| ServiceNotExist | service "%s" is not existed | 400 |
| ServiceAccessKeyLimitExceeded | Exceed service accessKey quota: '%d'. | 409 |
| Error Code | Message | Http Status |
|---|---|---|
| ProjectNotExist | Project `%s` can not be found. | 404 |
| ProjectAlreadyExists | Project `%s` already exists. | 409 |
| InvalidProjectName | Invalid ProjectName `%s`, err: `%s`. | 400 |
| InvalidNewProjectName | Invalid NewProjectName `%s`, err: `%s`. | 400 |
| ProjectNameAlreadyExists | ProjectName `%s` is already used. | 409 |
| ProjectDeleteConflictWithUser | Cannot delete Project `%s`, must remove all User first. | 409 |
| ProjectDeleteConflictWithRole | Cannot delete Project `%s`, must remove all Role first. | 409 |
| ProjectDeleteConflictWithResource | Cannot delete Project `%s`, must remove all resource first. | 409 |
| ProjectIdentityNotExist | Identity `%+v` can not be found. | 404 |
| InvalidProjectIdentityType | Invalid IdentityType `%s`, err: `%s`. | 400 |
| AddProjectUserConflict | User `%s` already be added to the Project `%s`. | 409 |
| RemoveProjectUserConflict | User `%s` not be added to the Project `%s`. | 409 |
| AddProjectRoleConflict | Role `%s` already be added to the Project `%s`. | 409 |
| RemoveProjectRoleConflict | Role `%s` not be added to the Project `%s`. | 409 |
| ProjectConfigAlreadyExists | ProjectConfig `%s` already exists. | 409 |