
# 返回码
表1正常返回码 
| 正常返回码 | 类型         | 描述                                                              |
|:---|:---|:---|
| 200   | OK         | GET操作正常返回 POST操作有返回体时正常返回      |
| 204   | No Content | DELETE操作正常返回。 POST操作无返回体时正常返回。 |
   
表2错误码 
| Http状态码 | 错误码      | 说明                           | Error Message                                                                               | 描述（处理措施）                                  |
|:---|:---|:---|:---|:---|
| 400     | VPC.1801 | ID错误。                        | resource id is invalid/Getting id is invalid.                                               | 检查使用正确的Resource ID。                       |
| 400     | VPC.1801 | action错误。                    | action is invalid.                                                                          | 合法的action为create或delete。                  |
| 400     | VPC.1801 | key的长度非法。                    | Tag length is invalid. The key length must be in range \[1,36\] and value in range \[0,43\] | 检查使用合法的key值。                              |
| 400     | VPC.0007 | Project_id错误。                | urlTenantId is not equal token TenantId.                                                    | 检查project_id。                             |
| 401     | VPC.0008 | 请求中TOKEN无效或者不带TOKEN          | Invalid token in the header./Authorization information is wrong.                            | 检查TOKEN是否合法。                              |
| 400     | VPC.1801 | value长度非法。                   | Tag length is invalid. The key length must be in range \[1,36\] and value in range \[0,43\] | 检查使用合法的value值。                            |
| 400     | VPC.1801 | key或者value中含有非法字符。           | InvalidInput/Tag value xxx is invalid.                                                      | 检查key或者value的合法性。                         |
| 400     | VPC.1801 | Key或者value为空。                | Tag xxx can not be null.                                                                    | 检查key或者value是否非空。                         |
| 400     | VPC.1801 | Tag为空。                       | Tag can not be null.                                                                        | 检查tag是否为空。                                |
| 400     | VPC.1801 | resource_type错误。             | Resource xxx is invalid.                                                                    | 合法的resource_type为loadbalancers或listeners。 |
| 400     | VPC.1801 | 一次性传入的tag总数超过10个。            | number of tags exceeds max unm of 10.                                                       | 减少传入tag的个数。                               |
| 400     | VPC.1814 | 资源已有的tag个数加上传入的tag个数总和超过10个。 | Invalid input for operation: resource_id: XXXX, number of tags exceed max num of 10.        | 减少传入tag的个数。                               |
| 400     | VPC.1814 | 传入的多个tag中，key值有重复。           | Invalid input for operation: tags key is duplicated.                                        | 修改tag值。                                   |
| 400     | VPC.1814 | Resource id不存在。              | Resource XXX XXX could not be found.                                                        | 检查资源是否存在。                                 |
| 400     | VPC.1814 | 指定key删除时输入不存在的key或者key为空字符串。 | The resource could not be found.                                                            | 输入正确的key后重新下发请求。                          |
| 400     | VPC.1814 | 给指定资源添加tag时超过10个。            | Invalid input for operation:resource_id:xxx, number of tags exceeds max num of 10。          | 一个资源最多支持10个tag。                           |
| 400     | VPC.1801 | 创建时Tag重复                     | Tag key is repeated。                                                                        | 去掉重复tag后重新下发请求。                           |
| 500     | -        | 请求体格式错误。                     | Internal Server Error.                                                                      | 检查使用正确请求体格式。                              |
   
