
# 错误码
当您调用API时，如果遇到"APIGW"开头的错误码，请参见[API网关错误码](https://support.huaweicloud.com/devg-apisign/api-sign-errorcode.html)进行处理。
更多服务错误码请参见[API错误中心](https://apierrorcenter.developer.huaweicloud.com/apierrorcenter)。
| 状态码 | 错误码      | 错误信息                                                                                                                                                                   | 描述                              | 处理措施                                     |
|:---|:---|:---|:---|:---|
| 400 | 1100     | 缺失必选参数。                                                                                                                                                                | 缺失必选参数。                         | 请检查请求参数。                                 |
| 400 | 1101     | 用户名校验失败。                                                                                                                                                               | 用户名校验失败。                        | 请检查用户名。                                  |
| 400 | 1102     | 邮箱校验失败。                                                                                                                                                                | 邮箱校验失败。                         | 请检查邮箱。                                   |
| 400 | 1103     | 密码校验失败。                                                                                                                                                                | 密码校验失败。                         | 请检查密码。                                   |
| 400 | 1104     | 手机号校验失败。                                                                                                                                                               | 手机号校验失败。                        | 请检查手机号。                                  |
| 400 | 1105     | xuser_type必须与xdomain_type相同。                                                                                                                                           | xuser_type必须与xdomain_type相同。    | 请确认xuser_type与xdomain_type是否相同。          |
| 400 | 1106     | 国家码、手机号必须同时存在。                                                                                                                                                         | 国家码、手机号必须同时存在。                  | 请检查国家码和手机号是否同时存在。                        |
| 400 | 1107     | 账号管理员不能被删除。                                                                                                                                                            | 账号管理员不能被删除。                     | 不允许此操作。                                  |
| 400 | 1108     | 新密码不能与原密码相同。                                                                                                                                                           | 新密码不能与原密码相同。                    | 请修改新密码。                                  |
| 400 | 1109     | 用户名已存在。                                                                                                                                                                | 用户名已存在。                         | 请修改用户名。                                  |
| 400 | 1110     | 邮箱已存在。                                                                                                                                                                 | 邮箱已存在。                          | 请修改邮箱。                                   |
| 400 | 1111     | 手机号已存在。                                                                                                                                                                | 手机号已存在。                         | 请修改手机号。                                  |
| 400 | 1113     | xuser_id、xuser_type已存在。                                                                                                                                                | xuser_id、xuser_type已存在。         | 请修改xuser_id和xuser_type。                  |
| 400 | 1115     | IAM用户数量达到最大限制。                                                                                                                                                         | IAM用户数量达到最大限制。                  | 请修改用户配额或联系技术支持。                          |
| 400 | 1117     | 用户描述校验失败。                                                                                                                                                              | 用户描述校验失败。                       | 请修改用户描述。                                 |
| 400 | 1118     | 密码是弱密码。                                                                                                                                                                | 密码是弱密码。                         | 重新选择密码。                                  |
| 400 | 1120     | access_mode参数不合法                                                                                                                                                       | access_mode参数不合法                | 检查access_mode参数                          |
| 400 | IAM.0007 | Request parameter %(key)s is invalid.                                                                                                                                  | 请求参数校验失败。                       | 请检查请求参数。                                 |
| 400 | IAM.0008 | Please scan the QR code first.                                                                                                                                         | 请先扫描二维码。                        | 请先扫描二维码。                                 |
| 400 | IAM.0009 | X-Subject-Token is invalid in the request.                                                                                                                             | 请求中的X-Subject-Token校验失败。        | 请检查请求参数。                                 |
| 400 | IAM.0010 | The QR code has already been scanned by another user.                                                                                                                  | 此二维码已经被其他人扫描。                   | 无需处理。                                    |
| 400 | IAM.0011 | Request body is invalid.                                                                                                                                               | 请求体校验失败。                        | 请检查请求体。                                  |
| 400 | IAM.0072 | '%(key)s' is a required property.                                                                                                                                      | 请求校验异常。举例：%(key)s为必填属性          | 请联系技术支持。                                 |
| 400 | IAM.0073 | Invalid input for field '%(key)s'. The value is '%(value)s'.                                                                                                           | 输入字段无效。                         | 请联系技术支持。                                 |
| 400 | IAM.0077 | Invalid policy type.                                                                                                                                                   | 策略类型错误。                         | 请联系技术支持。                                 |
| 400 | IAM.1000 | The role must be a JSONObject.                                                                                                                                         | 缺少role对象。                       | 检查请求体中是否有role对象。                         |
| 400 | IAM.1001 | The display_name must be a string and cannot be left blank or contain spaces.                                                                                          | 策略display_name为空或包含空格。          | 检查display_name字段的值是否正确。                  |
| 400 | IAM.1002 | The length \[input length\] of the display name exceeds 64 characters.                                                                                                 | 策略display_name不能超过64个字符。        | 检查display_name字段的长度。                     |
| 400 | IAM.1003 | The display_name contains invalid characters.                                                                                                                          | 策略display_name包含非法字符。           | 检查display_name字段的值是否正确。                  |
| 400 | IAM.1004 | The type must be a string and cannot be left blank or contain spaces.                                                                                                  | type为空。                         | 检查type字段的值是否正确。                          |
| 400 | IAM.1005 | Invalid type \[input type\].                                                                                                                                           | 非法的type字段。                      | 检查type字段的值是否正确。                          |
| 400 | IAM.1006 | The custom policy does not need a catalog.                                                                                                                             | 自定义策略不需要catalog。                | 删除catalog字段。                             |
| 400 | IAM.1007 | The custom policy does not need a flag.                                                                                                                                | 自定义策略不需要flag。                   | 删除flag字段。                                |
| 400 | IAM.1008 | The custom policy does not need a name.                                                                                                                                | 自定义策略不需要name。                   | 删除name字段。                                |
| 400 | IAM.1009 | The type of a custom policy must be 'AX' or 'XA'.                                                                                                                      | 自定义策略的type只能为'AX'或'XA'。         | 根据需求修改type字段为'AX'或'XA'。                  |
| 400 | IAM.1010 | The catalog must be a string.                                                                                                                                          | catalog字段必须为字符串。                | 检查catalog字段的值是否正确。                       |
| 400 | IAM.1011 | The length \[input length\] of the catalog exceeds 64 characters.                                                                                                      | catalog字段不能超过64个字符。             | 检查catalog字段的长度。                          |
| 400 | IAM.1012 | Invalid catalog.                                                                                                                                                       | 非法的catalog字段。                   | 检查catalog字段的值是否正确。                       |
| 400 | IAM.1013 | The flag must be a string.                                                                                                                                             | flag字段必须为字符串。                   | 检查flag字段的值是否正确。                          |
| 400 | IAM.1014 | The value of the flag must be 'fine_grained'.                                                                                                                          | flag字段的值应为"fine_grained"。       | 将flag字段的值修改为"fine_grained"。              |
| 400 | IAM.1015 | The name must be a string and cannot be left blank or contain spaces.                                                                                                  | name字段不能为空。                     | 系统角色的name字段必须填写。                         |
| 400 | IAM.1016 | The length of the name \[input name\] cannot exceed 64 characters.                                                                                                     | name字段长度不能超过64字符。               | 检查name字段的值是否正确。                          |
| 400 | IAM.1017 | Invalid name.                                                                                                                                                          | 非法的name字段。                      | 检查name字段的值是否正确。                          |
| 400 | IAM.1018 | Invalid description.                                                                                                                                                   | 非法的description字段。               | 检查description字段的值是否正确。                   |
| 400 | IAM.1019 | Invalid description_cn.                                                                                                                                                | 非法的description_cn字段。            | 检查description_cn字段的值是否正确。                |
| 400 | IAM.1020 | The policy must be a JSONObject.                                                                                                                                       | 缺少policy对象。                     | 检查请求体中是否有policy对象。                       |
| 400 | IAM.1021 | The size \[input policySize\] of the policy exceeds 6,144 characters.                                                                                                  | policy对象大小超过6144字符。             | 检查policy对象的长度。                           |
| 400 | IAM.1022 | The length \[input id length\] of the ID exceeds 128 characters.                                                                                                       | id字段大小超过128字符。                  | 检查id字段的长度。                               |
| 400 | IAM.1023 | Invalid ID '\[input id\]'.                                                                                                                                             | 策略id字段无效。                       | 检查id字段的值是否正确。                            |
| 400 | IAM.1024 | The version of a fine-grained policy must be '1.1'.                                                                                                                    | 细粒度策略的version不为1.1。             | 细粒度策略version字段的值应改为1.1。                  |
| 400 | IAM.1025 | Fine-grained policies do not need depends.                                                                                                                             | 细粒度策略不需要depends字段。              | 删除depends字段。                             |
| 400 | IAM.1026 | The version of an RBAC policy must be '1.0' or '1.1'.                                                                                                                  | RBAC的version只能为1.0和1.1。         | version字段的值改为1.0或1.1。                    |
| 400 | IAM.1027 | The Statement/Rules must be a JSONArray.                                                                                                                               | statement字段不为JSONArray。         | 检查是否存在statement，类型为json数组。               |
| 400 | IAM.1028 | The number of statements \[input statement size\] must be greater than 0 and less than or equal to 8.                                                                  | statement字段长度不为1-8。             | 至少应填写一个statement，删除超过8个的statement。       |
| 400 | IAM.1029 | The value of Effect must be 'allow' or 'deny'.                                                                                                                         | effect字段只能为allow或deny。          | effect字段填写allow或deny。                    |
| 400 | IAM.1030 | The Action or NotAction must be a JSONArray.                                                                                                                           | action或notAction字段不合法。          | 检查action对象的值是否正确。                        |
| 400 | IAM.1031 | The Action and NotAction cannot be set at the same time in a statement.                                                                                                | action和notAction字段不能同时存在。       | 删除action或notAction字段。                    |
| 400 | IAM.1032 | The OCP NotAction cannot be 'allow'.                                                                                                                                   | OCP的notAction不能为allow。          | OCP策略如果使用notAction则只能为deny。              |
| 400 | IAM.1033 | The number of actions \[input action size\] exceeds 100.                                                                                                               | action的数量超过100。                 | 检查action的数量，不能超过100。                     |
| 400 | IAM.1034 | The length \[input urn length\] of an action URN exceeds 128 characters.                                                                                               | action长度超过128。                  | 检查每条action的长度，不能超过128字符。                 |
| 400 | IAM.1035 | Action URN '\[input urn\]' contains invalid characters.                                                                                                                | action包含非法字符。                   | 检查action的值是否正确。                          |
| 400 | IAM.1036 | Action '\[input action\]' has not been registered.                                                                                                                     | action未被注册。                     | 通过注册中心的接口先注册action。                      |
| 400 | IAM.1037 | The number of resource URIs \[input Resource uri size \] must be greater than 0 and less than or equal to 20.                                                          | resource数量只能为1-20。              | 检查resource的数量。                           |
| 400 | IAM.1038 | Resource URI '\[input resource uri\]' is invalid. Old resources only support agencies.                                                                                 | 非法的资源URI。                       | 检查每条资源URI的值是否正确。                         |
| 400 | IAM.1039 | Old policies do not support conditions.                                                                                                                                | 旧格式策略不支持condition。              | 删除condition或使用新格式策略。                     |
| 400 | IAM.1040 | The number of resources \[input Resource size\] must be greater than 0 and less than or equal to 10.                                                                   | 资源URI数量只能为1-10。                 | 检查每个resource对象的URI数量。                    |
| 400 | IAM.1041 | The resource URI cannot be left blank or contain spaces.                                                                                                               | 资源URI为空。                        | 检查每条资源URI的值是否正确。                         |
| 400 | IAM.1042 | The length \[input uri length\] of a resource URI exceeds 1,500 characters.                                                                                            | 资源URI超过1500字符。                  | 检查每条资源URI的长度。                            |
| 400 | IAM.1043 | A region must be specified.                                                                                                                                            | 缺少资源region。                     | 资源URI中填写region。                          |
| 400 | IAM.1044 | Region '\[input resource region \]' of resource '\[input resource\]' is invalid.                                                                                       | Region字段不合法。                    | 检查region字段的值是否正确。                        |
| 400 | IAM.1045 | Resource URI '\[input resource uri\]' or service '\[input resource split\]' is invalid.                                                                                | 资源URI中服务名无效。                    | 检查云服务名是否正确或先注册云服务。                       |
| 400 | IAM.1046 | Resource URI '\[input resource\]' or resource type '\[input resource split\]' is invalid.                                                                              | 资源URI中类型无效。                     | 检查资源类型是否正确或先注册资源类型。                      |
| 400 | IAM.1047 | Resource URI '\[input resource uri\]' contains invalid characters.                                                                                                     | 资源URI不合法。                       | 检查资源URI的值是否正确。                           |
| 400 | IAM.1048 | Resource URI '\[input resource uri\]' is too long or contains invalid characters.                                                                                      | 资源URI包含非法字符。                    | 检查id值是否包含非法字符。                           |
| 400 | IAM.1049 | The Resource must be a JSONObject or JSONArray.                                                                                                                        | 缺少resource对象。                   | 检查resource对象是否为json数组。                   |
| 400 | IAM.1050 | The number of conditions \[input condition size\] must be greater than 0 and less than or equal to 10.                                                                 | 条件数量只能为1-10。                    | 至少填写一个条件，或删除多余的条件。                       |
| 400 | IAM.1051 | The values of Operator '\[input operator\]' cannot be null.                                                                                                            | 操作符为空。                          | 填写正确的操作符。                                |
| 400 | IAM.1052 | Invalid Attribute '\[input attribute \]'.                                                                                                                              | 非法的属性字段。                        | 检查属性的值是否正确。                              |
| 400 | IAM.1053 | Attribute '\[input attribute\]' must be a JSONArray.                                                                                                                   | attribute不为json数组。              | 检查attribute对象是否为json数组。                  |
| 400 | IAM.1054 | The number \[input attribute size \] of attributes '\[input attribute\]' for operator '\[input operator\]' must be greater than 0 and less than or equal to 10.        | 每个操作符对应的属性数量只能为1-10。            | 检查每个操作符下的attribute数量是否正确。                |
| 400 | IAM.1055 | Attribute '\[input attribute \]' does not match operator '\[input operator\]'.                                                                                         | 属性与操作符不匹配。                      | 检查attribute和操作符类型是否匹配。                   |
| 400 | IAM.1056 | The length \[condition length\] of attribute '\[input attribute\]' for operator '\[input operator\]' must be greater than 0 and less than or equal to 1024 characters. | condition长度只能为1-1024。           | 检查condition对象的总长度。                       |
| 400 | IAM.1057 | Value \[input condition\] of attribute \[input attributes\] for operator \[input operator\] contains invalid characters.                                               | condition包含非法字符。                | 检查condition中是否包括非法字符。                    |
| 400 | IAM.1058 | The number of depends \[input policyDepends size\] exceeds 20.                                                                                                         | depends数量超过20。                  | 删除多余的depends值。                           |
| 400 | IAM.1059 | Invalid key '{}'.                                                                                                                                                      | 策略包含非法的Key。                     | 修改或删除策略请求体中非法的key。                       |
| 400 | IAM.1060 | The value of key '{}' must be a string.                                                                                                                                | 该字段必须为字符串。                      | display_name和name字段改为字符串类型。              |
| 400 | IAM.1061 | Invalid TOTP passcode.                                                                                                                                                 | 非法的认证密钥。                        | 请确认请求或联系技术支持。                            |
| 400 | IAM.1062 | Login protection has been bound to mfa, the unbinding operation cannot be performed.                                                                                   | 登录保护已经绑定MFA认证，解绑操作不能执行。         | 请确认请求或联系技术支持。                            |
| 400 | IAM.1101 | The request body size %s is invalid.                                                                                                                                   | 请求体的大小不合规范。                     | 请检查请求体是否为空或过大（大于32KB）。                   |
| 400 | IAM.1102 | The %s in the request body is invalid.                                                                                                                                 | 请求体中的某个值错误。                     | 请参照接口资料检查请求体中的属性值。                       |
| 400 | IAM.1103 | The %s is required in the request body.                                                                                                                                | 请求体中的必选值缺失。                     | 请参照接口资料检查请求体。                            |
| 400 | IAM.1104 | The access key %s is in the blacklist.                                                                                                                                 | 请求的AK已在黑名单中。                    | 请确认AK是否存在。                               |
| 400 | IAM.1105 | The access key %s has expired.                                                                                                                                         | 请求的AK已经过期。                      | 请重新创建访问密钥。                               |
| 400 | IAM.1106 | The user %s with access key %s cannot be found.                                                                                                                        | 找不到AK所属用户信息。                    | 请确认AK所属用户或委托是否存在。                        |
| 400 | IAM.1107 | The access key %s is inactive.                                                                                                                                         | 请求的AK已被禁用。                      | 重新启用AK。                                  |
| 400 | IAM.1108 | The securitytoken has expired.                                                                                                                                         | 临时访问密钥已过期。                      | 请重新获取临时访问密钥。                             |
| 400 | IAM.1109 | The project information cannot be found.                                                                                                                               | 找不到project信息。                   | 请检查请求体或者token中的project是否存在，如不能解决请联系技术支持。 |
| 401 | IAM.0001 | The request you have made requires authentication.                                                                                                                     | 请求认证失败。                         | 请补充或确认请求认证信息。                            |
| 401 | IAM.0061 | Account locked.                                                                                                                                                        | 用户被锁定。                          | 请等待自动解锁。                                 |
| 401 | IAM.0062 | Incorrect password.                                                                                                                                                    | 用户密码错误。                         | 请输入正确的账号密码。                              |
| 401 | IAM.0063 | Access token authentication failed.                                                                                                                                    | accesstoken认证失败。                | 请联系技术支持。                                 |
| 401 | IAM.0064 | The access token does not have permissions for the request.                                                                                                            | IAM用户没有权限请求。                    | 请确认该IAM用户的权限信息。                          |
| 401 | IAM.0065 | HUAWEI IDs registered in European countries cannot log in to HUAWEI CLOUD.                                                                                             | 欧洲站点不允许登录。                      | 请输入华为云支持的账号。                             |
| 401 | IAM.0066 | The token has expired.                                                                                                                                                 | token已过期。                       | 传入有效期内的token。                            |
| 401 | IAM.0067 | Invalid token.                                                                                                                                                         | 错误的token。                       | 传入正确的token。                              |
| 403 | IAM.0002 | You are not authorized to perform the requested action.                                                                                                                | 请求未授权。                          | 请确认是否授权成功。                               |
| 403 | IAM.0003 | Policy doesn't allow %(actions)s to be performed.                                                                                                                      | 策略未授权此操作。                       | 请确认策略是否授权此操作。                            |
| 403 | IAM.0080 | The user %s with access key %s is disabled.                                                                                                                            | AK所属用户被禁用。                      | 联系用户所属租户的安全管理员。                          |
| 403 | IAM.0081 | This user only supports console access, not programmatic access.                                                                                                       | 用户仅支持控制台访问，不支持程序访问。             | 联系用户所属租户的安全管理员修改用户访问模式。                  |
| 403 | IAM.0082 | The user %s is disabled.                                                                                                                                               | 用户被禁用。                          | 请联系用户所属租户安全管理员。                          |
| 403 | IAM.0083 | You do not have permission to access the private region %s.                                                                                                            | 您没有私有region的访问权限。               | 请使用其他region或者联系私有region管理员。              |
| 404 | IAM.0004 | Could not find %(target)s: %(target_id)s.                                                                                                                              | 无法找到请求资源。                       | 请确认请求或联系技术支持。                            |
| 409 | IAM.0005 | Conflict occurred when attempting to store %(type)s - %(details)s.                                                                                                     | 保存请求资源时发生冲突。                    | 请确认请求或联系技术支持。                            |
| 410 | IAM.0020 | Original auth failover to other regions, please auth downgrade                                                                                                         | 源区域Auth服务故障转移至其他区域，系统将自动进行认证降级。 | 系统将自动进行认证降级。                             |
| 429 | IAM.0012 | The throttling threshold has been reached. Threshold: %d times per %d seconds                                                                                          | 已达到限流阈值。                        | 请确认请求或联系技术支持。                            |
| 500 | IAM.0006 | An unexpected error prevented the server from fulfilling your request.                                                                                                 | 系统错误。                           | 请联系技术支持。                                 |
   
