
# 业务面API错误码
调用接口出错后，将不会返回结果数据。调用方可根据每个接口对应的错误码来定位错误原因。当调用出错时，HTTP 请求返回一个 4xx 或 5xx 的 HTTP 状态码。返回的消息体中是具体的错误代码及错误信息。在调用方找不到错误原因时，可以联系技术人员，并提供错误码，以便尽快帮您解决问题。
当您调用API时，如果遇到"APIGW"开头的错误码，请参见[API网关错误码](https://support.huaweicloud.com/devg-apisign/api-sign-errorcode.html)进行处理。
表1错误码 
| 状态码 | 错误码      | 错误信息                                                                         | 描述                      | 处理措施                                                                                                                                                                                                                                                                                                                                          |
|:---|:---|:---|:---|:---|
| 400 | GES.8000 | Incorrect parameter format.                                                  | 参数格式错误                  | 检查请求url、body体是否和文档描述一致。                                                                                                                                                                                                                                                                                                                       |
| 400 | GES.8001 | Failed to query graph statistics.                                            | 图统计信息查询失败               | 1. 网络波动问题建议重试下。  2. 若继续失败，则根据errorMessage查看错误信息联系技术支持人员。                                                                                                                          |
| 500 | GES.8002 | Graph statistics query error.                                                | 图统计信息查询错误               | 1. 检查token是否过期，重新获取token。  2. 若继续失败，则根据errorMessage查看错误信息联系技术支持人员。                                                                                                                  |
| 400 | GES.8005 | Incorrect parameter.                                                         | 参数错误                    | 1. 检查URL中的project_id是否正确。  2. 检查请求头是否正确，比如X-Auth-Token是否正确。                                                                                                                     |
| 400 | GES.8006 | Invalid resource access.                                                     | 资源访问不合法                 | 1.AK/SK鉴权方式：需要检查regioncode或者regionname是否正确。 2.Token鉴权方式：需要检查token对应的project是否正确。                                                                                                                                                                                                                                 |
| 400 | GES.8007 | Invalid token.                                                               | Token不合法                | 检查Token是否正确。                                                                                                                                                                                                                                                                                                                                  |
| 400 | GES.8008 | An error occurs in the underlying authentication system.                     | 底层认证系统出错                | 请稍后重试或联系技术支持人员。                                                                                                                                                                                                                                                                                                                               |
| 400 | GES.8011 | Failed to export a graph.                                                    | 导出图失败                   | 1. 检查图名是否正确。  2. 查看导出文件路径是否正确。  3. 检查该账号有无OBS写入权限。                                                                          |
| 400 | GES.8012 | Failed to clear a graph.                                                     | 清空图失败                   | 1. 网络波动问题建议重试下。  2. 若继续失败，则根据errorMessage查看错误信息联系技术支持人员。                                                                                                                         |
| 400 | GES.8013 | Failed to incrementally import data to the graph.                            | 增量导入图失败                 | 1. 网络波动问题建议重试下。  2. 若继续失败，则根据errorMessage查看错误信息联系技术支持人员。                                                                                                                          |
| 400 | GES.8020 | The current user does not have permission.                                   | （细粒度授权时）当前用户没权限         | 使用具有Security Administrator权限的用户进行授权。                                                                                                                                                                                                                                                                                                          |
| 400 | GES.8101 | Invalid filter criteria for edge queries.                                    | 边过滤查询条件不合法              | 检查边过滤条件格式是否正确。                                                                                                                                                                                                                                                                                                                                |
| 400 | GES.8102 | Invalid label for edge filtering queries.                                    | 边过滤查询Label不合法           | 检查labels是不是正常的josn体。                                                                                                                                                                                                                                                                                                                          |
| 400 | GES.8103 | Both the condition and label of edge filtering queries are empty.            | 边过滤查询条件和Label同时为空       | 边过滤查询条件和Label不能同时为空。                                                                                                                                                                                                                                                                                                                          |
| 400 | GES.8104 | Invalid edge filtering query sequence.                                       | 边过滤排序输入不合法              | 检查边过滤排序输入是否合法。                                                                                                                                                                                                                                                                                                                                |
| 400 | GES.8105 | Failed to query edges that meet filter criteria.                             | 边过滤查询执行失败               | 1. 网络波动问题建议重试下。  2. 若继续失败，则根据errorMessage查看错误信息联系技术支持人员。                                                                                                                          |
| 400 | GES.8106 | The source vertex or target vertex in the edge details is empty.             | 边详情起点或终点为空              | 边详情起点和终点不能为空。                                                                                                                                                                                                                                                                                                                                 |
| 400 | GES.8107 | Failed to query edge details.                                                | 边详情查询失败                 | 1. 网络波动问题建议重试下。  2. 若继续失败，则根据errorMessage查看错误信息联系技术支持人员。                                                                                                                                |
| 500 | GES.8108 | Edge details query error.                                                    | 边详情查询内部错误               | 请稍后重试或联系技术人员。                                                                                                                                                                                                                                                                                                                                 |
| 400 | GES.8109 | Invalid edge filtering query operator.                                       | 边过滤查询算子不合法              | 边过滤查询算子取值为 in、out、both、edge。                                                                                                                                                                                                                                                                                                                  |
| 400 | GES.8110 | Parameter edges cannot be left blank.                                        | 参数edges不能为空             | 批量边查询请求体中edges是否为空。                                                                                                                                                                                                                                                                                                                           |
| 400 | GES.8201 | Invalid label for vertex filtering queries.                                  | 点过滤查询Label不合法           | 检查labels是不是正常的josn体。                                                                                                                                                                                                                                                                                                                          |
| 400 | GES.8202 | Invalid filter criteria for vertex queries.                                  | 点过滤查询条件不合法              | 1. 检查点过滤查询API中propertyName（属性名称）是否为空。  2. 检查点过滤查询API中values（属性值）是否为空。  3. 若继续失败，则根据errorMessage查看错误信息联系技术支持人员。   |
| 400 | GES.8203 | Both the condition and label of vertex filtering queries are empty.          | 点过滤查询条件和Label同时为空       | 点过滤条件和Label不能同时为空。                                                                                                                                                                                                                                                                                                                            |
| 400 | GES.8204 | Failed to query vertices that meet filter criteria.                          | 点过滤查询执行失败               | 1. 网络波动问题建议重试下。  2. 若继续失败，则根据errorMessage查看错误信息联系技术支持人员。                                                                                                                         |
| 400 | GES.8205 | Invalid vertex filtering query sequence.                                     | 点过滤排序输入不合法              | 点过滤查询API中orderValue必须在"incr"和"decr"。                                                                                                                                                                                                                                                                                                          |
| 400 | GES.8206 | Both vertexid and vertextids exist.                                          | vertexid和vertextids同时存在 | vertexid和vertextids不能同时存在。                                                                                                                                                                                                                                                                                                                    |
| 400 | GES.8207 | Both vertexid and vertextids are empty.                                      | vertexid和vertextids同时为空 | vertexid或vertextids为空。                                                                                                                                                                                                                                                                                                                        |
| 400 | GES.8208 | Incorrect vertextids format.                                                 | vertextids格式错误          | vertextids是否 json array。                                                                                                                                                                                                                                                                                                                      |
| 400 | GES.8209 | Failed to query vertex details.                                              | 点详情查询失败                 | 检查图名是否存在。                                                                                                                                                                                                                                                                                                                                     |
| 500 | GES.8210 | Vertex details query error.                                                  | 点详情查询内部错误               | 请稍后重试或联系技术支持人员。                                                                                                                                                                                                                                                                                                                               |
| 400 | GES.8211 | Invalid vertex filtering query operator.                                     | 点过滤查询算子不合法              | 点过滤查询算子取值为 inV、outV、bothV、vertex。                                                                                                                                                                                                                                                                                                             |
| 400 | GES.8212 | Failed to delete the vertex label.                                           | 删除点Label失败              | Label是否存在。                                                                                                                                                                                                                                                                                                                                    |
| 400 | GES.8213 | Failed to add the vertex label.                                              | 增加点Label失败              | Label是否存在。                                                                                                                                                                                                                                                                                                                                    |
| 400 | GES.8214 | Parameter vertices cannot be left blank.                                     | 参数vertices不能空           | 批量点查询请求体中vertices是否为空。                                                                                                                                                                                                                                                                                                                        |
| 400 | GES.8220 | Failed to update the vertex properties.                                      | 更新点属性失败                 | 1. 网络波动问题建议重试下。  2. 若继续失败，则根据errorMessage查看错误信息联系技术支持人员。                                                                                                                           |
| 400 | GES.8221 | Failed to update the edge properties.                                        | 更新边属性失败                 | 1. 网络波动问题建议重试下。  2. 若继续失败，则根据errorMessage查看错误信息联系技术支持人员。                                                                                                                           |
| 400 | GES.8301 | Failed to query a job.                                                       | 作业查询失败                  | 1. 网络波动问题建议重试下。  2. 若继续失败，则根据errorMessage查看错误信息联系技术支持人员。                                                                                                                   |
| 500 | GES.8302 | Job query error.                                                             | 作业查询内部错误                | 请稍后重试或联系技术支持人员。                                                                                                                                                                                                                                                                                                                               |
| 400 | GES.8303 | Failed to terminate a job.                                                   | 作业终止失败                  | 1. 网络波动问题建议重试下。  2. 若继续失败，则根据errorMessage查看错误信息联系技术支持人员。                                                                                                                                |
| 500 | GES.8304 | Job termination error.                                                       | 作业终止内部错误                | 请稍后重试或联系技术支持人员。                                                                                                                                                                                                                                                                                                                               |
| 400 | GES.8401 | The algorithm or graph name cannot be empty.                                 | 算法名或者图名不能为空             | 算法名或者图名不能为空。                                                                                                                                                                                                                                                                                                                                  |
| 400 | GES.8402 | Failed to run the algorithm.                                                 | 算法执行失败                  | 1. 网络波动问题建议重试下。  2. 检查执行算法API图名是否填写正确。  3. 若继续失败，则根据errorMessage查看错误信息联系技术支持人员。                                    |
| 500 | GES.8403 | Algorithm running error.                                                     | 算法执行内部错误                | 请稍后重试或联系技术支持人员。                                                                                                                                                                                                                                                                                                                               |
| 400 | GES.8404 | Invalid algorithm running format.                                            | 算法执行模式不合法               | 1. 网络波动问题建议重试下。  2. 若继续失败，则根据errorMessage查看错误信息联系技术支持人员。                                                                                                                               |
| 400 | GES.8501 | The Gremlin command is not supported.                                        | Gremlin查询命令不支持          | 不支持Gremlin的tryNext、explain、tree语句。                                                                                                                                                                                                                                                                                                            |
| 400 | GES.8502 | Failed to find the Gremlin configuration file.                               | Gremlin配置文件找不到          | 请稍后重试或联系技术支持人员。                                                                                                                                                                                                                                                                                                                               |
| 400 | GES.8503 | Gremlin query failed.                                                        | Gremlin查询执行失败           | 1. 网络波动问题建议重试下。  2. 若继续失败，则根据errorMessage查看错误信息联系技术支持人员。                                                                                                                         |
| 500 | GES.8504 | Gremlin query error.                                                         | Gremlin查询内部错误           | 请稍后重试或联系技术支持人员。                                                                                                                                                                                                                                                                                                                               |
| 400 | GES.8505 | The Gremlin query statement does not contain the command field.              | Gremlin查询语句没有command字段  | Gremlin查询语句没有command字段。                                                                                                                                                                                                                                                                                                                       |
| 400 | GES.8506 | The size of the Gremlin query request statements exceeds the upper limit.    | Gremlin查询请求语句超过限制       | 当前限制为64MB。                                                                                                                                                                                                                                                                                                                                    |
| 500 | GES.8601 | Gremlin service unavailable.                                                 | Gremlin服务不可用            | 请稍后重试或联系技术支持人员。                                                                                                                                                                                                                                                                                                                               |
| 500 | GES.8602 | Engine service unavailable.                                                  | Engine服务不可用             | 请稍后重试或联系技术支持人员。                                                                                                                                                                                                                                                                                                                               |
| 400 | GES.8603 | Failed to create an index                                                    | 索引创建失败                  | 1. 检查索引名称是否只包含字母,数字,-和_。  2. 检查索引参数类型是否符合GES API规定的格式。                                                                                                                                |
| 400 | GES.8604 | Failed to delete an index                                                    | 索引删除失败                  | 1. 检查图名是否填写正确。  2. 检查索引名称是否填写正确。  3. 检查请求Method type是否为delete。                                                    |
| 400 | GES.8605 | Failed to query an index                                                     | 索引查询失败                  | 1. 网络波动问题建议重试下。  2. 若继续失败，则根据errorMessage查看错误信息联系技术支持人员。                                                                                                                    |
| 400 | GES.8609 | The request body for querying path details is invalid.                       | 查询路径详情请求体不合法            | 1. 检查图名是否填写正确。  2. 检查查询路径详情API参数格式是否填写正确。  3. 若继续失败，则根据errorMessage查看错误信息联系技术支持人员。                                        |
| 400 | GES.8610 | The path parameter of the request body for querying path details is invalid. | 查询路径详情请求体path参数不合法      | 1. 检查查询路径详情API参数格式是否填写正确。  2. 检查查询路径详情API必选参数是否缺失。  3. 若继续失败，则根据errorMessage查看错误信息联系技术支持人员。                             |
| 400 | GES.8611 | Failed to query path details.                                                | 查询路径详情失败                | 1. 网络波动问题建议重试下。  2. 若继续失败，则根据errorMessage查看错误信息联系技术支持人员。                                                                                                                                  |
| 400 | GES.8612 | The operation of querying path details is not supported.                     | 查询路径详情操作不支持             | 1. 网络波动问题建议重试下。  2. 若继续失败，则根据errorMessage查看错误信息联系技术支持人员。                                                                                                                                     |
| 400 | GES.8801 | Failed to add a label to metadata.                                           | 元数据添加label失败            | 1. 检查要添加的label是否已经存在。  2. 检查添加labelAPI参数格式是否正确。  3. 检查添加labelAPI必选参数是否都有值。                                      |
| 400 | GES.8803 | Failed to query the metadata.                                                | 元数据查询失败                 | 1. 检查要查询的图是否存在。  2. 检查查询图元数据详情API的graph_name是否填写正确。                                                                                                                                |
| 500 | GES.8804 | Metadata query error.                                                        | 元数据查询内部错误               | 请稍后重试或联系技术支持人员。                                                                                                                                                                                                                                                                                                                               |
| 400 | GES.8806 | K-Hop query with filter criteria failed.                                     | 带过滤的khop查询执行失败          | 1. 网络波动问题建议重试下。  2. 若继续失败，则根据errorMessage查看错误信息联系技术支持人员。                                                                                                                            |
   
