
# 错误码
当您调用API时，如果遇到"APIGW"开头的错误码，请参见[API网关错误码](https://support.huaweicloud.com/devg-apisign/api-sign-errorcode.html)进行处理。
| 状态码 | 错误码         | 错误信息                                                                                                         | 描述                         | 处理措施                                 |
|:---|:---|:---|:---|:---|
| 400 | UC.00011001 | bad request.                                                                                                 | 错误请求。                      | 请检查URL，参数，请求头是否正确。                   |
| 400 | UC.00011002 | parameter invalid.                                                                                           | 参数无效。                      | 请检查参数是否多或少，格式是否正确。                   |
| 400 | UC.00011011 | granted object path invalid.                                                                                 | 资源路径无效。                    | 请检查资源路径是否存在服务资源列表下。                  |
| 400 | UC.00011012 | user does not exist or user is already in role.                                                              | 用户不存在或者用户已关联角色。            | 请检查用户是否被删除，或者禁用。或者是否已经加入项目。          |
| 400 | UC.00011013 | template role cannot be related to usergroup or user.                                                        | 模板角色不能关联群组或用户。             | 请检查角色是否为模板角色类型。                      |
| 400 | UC.00011014 | privilege policy format invalid.                                                                             | 权限规则定义不规范。                 | 请检查权限规则。                             |
| 400 | UC.00011015 | special role cannot be related to user.                                                                      | 不能关联用户的特殊角色。               | 检查关联的角色是否为项目管理员的角色。                  |
| 400 | UC.00011019 | The free quota has been used up.                                                                             | 该企业用户免费额度不足。               | 请检查额度。                               |
| 400 | UC.00011020 | The package quota has been used up. Please check \[All Account settings\]-\[Work\]-\[Projects and Members\]. | 该企业用户套餐包额度不足。              | 请检查余额。                               |
| 400 | UC.00011021 | This project type does not support cross-tenancy.                                                            | IPD项目暂不支持跨租户操作。            | IPD项目暂不支持跨租户操作。                      |
| 400 | UC.00011023 | user already had a role in this project.                                                                     | 用户已经在该项目中具备一个角色。           | 请检查参数是否错误。                           |
| 400 | UC.00011025 | not support invite multi enterprise.                                                                         | 项目跨租户邀请：不支持邀请多个企业。         | 项目跨租户邀请：不支持邀请多个企业。                   |
| 400 | UC.00011032 | the input enterprise user id is incorrect.                                                                   | 跨租户邀请：企业用户或用户名称输入错误。       | 请检查参数。                               |
| 400 | UC.00011036 | the vpcep quota has been used up.                                                                            | vpcep配额已用完。                | 增加配额。                                |
| 400 | UC.00011037 | the project is not exist.                                                                                    | 项目不存在。                     | 请检查参数。                               |
| 400 | UC.00011038 | the privilege template is not exist.                                                                         | 权限模板不存在。                   | 请检查参数。                               |
| 400 | UC.00011039 | the project already created privilege template.                                                              | 项目创建过模板。                   | 不能重复创建。                              |
| 400 | UC.00011040 | the template num over the limit.                                                                             | 租户下模板数超过最大限制。              | 租户下模板数超过最大限制。                        |
| 400 | UC.00011041 | the template name already exist.                                                                             | 项目模板名称重复。                  | 更换名称。                                |
| 400 | UC.00011042 | the project type not suit template type.                                                                     | 项目类型和模板类型不匹配。              | 请检查参数。                               |
| 400 | UC.00011044 | Template role cannot be deleted.                                                                             | 模板角色不允许删除。                 | 模板角色不允许删除。                           |
| 400 | UC.00011045 | The user is not in this project.                                                                             | 该用户已退出项目、用户不在项目中。          | 请先加入项目。                              |
| 400 | UC.00011053 | The project and role is not match.                                                                           | 项目和角色不匹配。                  | 角色不存在或项目不包含该角色。                      |
| 400 | UC.00011054 | The Role-User relations has conflict.                                                                        | 用户角色关联参数存在冲突。              | 不要重复添加。                              |
| 400 | UC.00011055 | The Role-USER relations contains other enterprise users.                                                     | 添加本企业成员时包含不属于项目归属企业的用户。    | 请检查用户的租户。                            |
| 400 | UC.00011059 | user is not in the project.                                                                                  | 用户不在项目内。                   | 请先将用户加入项目。                           |
| 400 | UC.00011061 | The number of users to be granted exceeds the limit.                                                         | 待授权人数超限。                   | 不能再添加。                               |
| 400 | UC.00011064 | Get iic users failed.                                                                                        | 获取iic委托列表失败。               | 稍后重试。                                |
| 400 | UC.00011085 | Selecting multiple agencies is not supported.                                                                | 项目跨租户邀：不支持同时选择多个委托。        | 请选择一个委托。                             |
| 400 | UC.00011176 | The team does not exist.                                                                                     | 团队不存在。                     | 请检查参数是否有误。                           |
| 400 | UC.00011177 | The number of teams exceeds the maximum.                                                                     | 团队成员超限额。                   | 团队成员不能超限额。                           |
| 400 | UC.00011178 | The name of teams already exists.                                                                            | 团队名称已存在。                   | 更换名称。                                |
| 400 | UC.00011179 | The team has associated projects.                                                                            | 该团队已经关联项目。                 | 请换一个项目。                              |
| 400 | UC.00011180 | The role name is illegal.                                                                                    | 角色名称非法。                    | 修改名称。                                |
| 400 | UC.00011181 | The user is invalid.                                                                                         | 用户非法。                      | 用户可能不存在于当前租户。                        |
| 400 | UC.00011182 | The user-role relation is illegal.                                                                           | 用户-角色 关系非法。                | 用户-角色关系可能不存在。                        |
| 400 | UC.00011189 | The role does not exist.                                                                                     | 角色不存在。                     | 请检查角色参数。                             |
| 400 | UC.00011191 | The number of teams associated with the project exceeds the upper limit.                                     | 项目下的团队数量超过限制。              | 项目下的团队数量超过限制。                        |
| 401 | UC.00010002 | The user does not have the related permission.                                                               | 缺少操作用户的相关权限。               | 请检查当前用户的操作权限。                        |
| 401 | UC.00011003 | unauthorized.                                                                                                | 没有权限。                      | 请检查当前用户的操作权限。                        |
| 401 | UC.00011017 | the service status is frozen.                                                                                | 该企业用户已被冻结。                 | 请先解冻。                                |
| 401 | UC.00011018 | the service status is closed.                                                                                | 该企业用户包租期处于关闭状态。            | 请先开通包服务。                             |
| 401 | UC.00011026 | target enterprise unauthorized.                                                                              | 项目跨租户邀：目标企业未授权。            | 请先授权。                                |
| 401 | UC.00011028 | the target enterprise user does not match.                                                                   | 跨租户邀请：目标企业用户不匹配。           | 请检查用户数。                              |
| 401 | UC.00011030 | validation target enterprise user region permission error.                                                   | 目标租户region权限校验失败。          | 请检查region。                           |
| 401 | UC.00011031 | cannot invite current enterprise user.                                                                       | 跨租户邀请：不能邀请当前企业用户。          | 不能邀请当前企业用户。                          |
| 401 | UC.00011034 | The role cannot modify this permission.                                                                      | 用户修改的权限不在可修改范围内。           | 请检查参数。                               |
| 401 | UC.00011043 | The role type modified by the user exceeds the grant range.                                                  | 用户修改的角色类型超出权限范围。           | 请检查用户的权限。                            |
| 401 | UC.00011084 | The target tenant is not authorized.                                                                         | 项目跨租户邀：目标租户未授权。            | 请先授权。                                |
| 403 | UC.00011004 | data already in used.                                                                                        | 数据使用中。                     | 数据有关联关系，不能删除，需要先删除关联数据。              |
| 403 | UC.00011016 | the number of project customized role has reached the maximum.                                               | 项目自定义角色数量太多。               | 请检查自定义角色的数量，一般不能超过500条。              |
| 403 | UC.00011062 | The service has been frozen.                                                                                 | 套餐被冻结。                     | 请先解冻。                                |
| 403 | UC.00011065 | the enterprise invitation is disabled.                                                                       | 跨租户邀请：开启内网访问的租户不允许进行跨租户邀请。 | 开启内网访问的租户不允许进行跨租户邀请。                 |
| 403 | UC.00011070 | Delete project creator is not supported.                                                                     | 不支持删除项目创建者。                | 请排除项目创建者。                            |
| 403 | UC.00011071 | The operation cannot be authorized to project admin.                                                         | 相关操作不支持设置项目管理员。            | 请排除项目管理员。                            |
| 404 | UC.00010003 | file not found.                                                                                              | 文件没有找到。                    | 文件找不到，请检查。                           |
| 404 | UC.00011005 | not found.                                                                                                   | 没有找到。                      | 数据已经被删除，无法操作。                        |
| 405 | UC.00011006 | method not enabled.                                                                                          | 方法不可用。                     | 此功能还未实现，请联系技术人员解决。                   |
| 408 | UC.00011007 | request timeout.                                                                                             | 请求超时。                      | 远端连接超时，请检查后台日志。                      |
| 409 | UC.00011008 | conflict.                                                                                                    | 冲突。                        | 请检查参数中的名称和ID是否匹配。                    |
| 409 | UC.00011009 | data already existed.                                                                                        | 数据已存在。                     | 数据已经存在，不能重复添加，请检查参数是否传入错误，或者先删除对应数据。 |
| 409 | UC.00011022 | Do not reapply.                                                                                              | 重复申请。                      | 不要重复申请。                              |
| 409 | UC.00011033 | invited user already in current project.                                                                     | 用户已经在当前项目中。                | 请检查参数。                               |
| 409 | UC.00011063 | Get redis lock failed.                                                                                       | 获取redis锁失败。                | 检查redis的健康情况。                        |
| 424 | UC.00011024 | the outside service response error.                                                                          | 外部服务返回错误。                  | 检查外部服务。                              |
| 429 | UC.00011035 | the user has been locked.                                                                                    | 当前用户被锁定。                   | 检查参数，15分钟后重试。                        |
| 500 | UC.00010005 | internal server error.                                                                                       | 服务内部错误。                    | 请查看后台日志排查问题。                         |
| 500 | UC.00011010 | operation failed.                                                                                            | 操作失败。                      | 请查看后台日志排查问题。                         |
   
