昇腾社区首页
中文
注册
开发者
下载

响应错误码与错误消息

HTTP错误码

HTTP错误码

含义

200

请求成功。

201

资源成功创建。

202

创建任务执行成功。

206

部分成功。

400

请求非法,客户端侧发生错误并返回错误消息。

401

无效的用户请求。

403

服务端拒绝请求。

404

访问请求资源不存在。

405

不支持的操作。

408

请求超时。

409

请求资源的状态之间存在冲突。

413

请求实体过大。

500

服务端内部错误。

501

所请求的功能当前尚未实现。

502

网关错误。

503

服务不可用。

504

网关超时。

推理服务错误码与错误消息

错误码

错误码变量名

错误消息

0

SUCCESS

Inference succeeded!

1

INFER_FAILED

Inference failed!

2

INVALID_URI

Invalid uri, format is incorrect!

3

TARGET_NOT_EXISTS

Illegal request, requested stream or model does not exist!

4

INVALID_BODY

Illegal request, the request body is invalid!

5

CACHE_FULL

Request Cache is full!

6

MODEL_INPUT_FAILED

Send input to model failed!

7

MODEL_OUTPUT_FAILED

Get output from model failed!

8

RATE_EXCEEDED

Maximum request rate exceeded!

9

ILLEGAL_CONTENT

Illegal content type! expected application/json

10

LARGE_CONTENT

The length of the content with its request head has exceeded!

11

INTERNAL_ERROR

The server has encountered an internal error!

12

UNSUPPORTED_METHOD

Options request or head request is not allowed!