Response Error Codes and Messages

HTTP Error Codes

HTTP Error Code

Meaning

200

Request successful.

201

The resource is created successfully.

202

The task is successfully created.

206

Partially succeeded.

400

An invalid request. An error occurs on the client and an error message is returned.

401

Invalid user request.

403

The server rejects the request.

404

The requested resource does not exist.

405

The operation is not supported.

408

Request timed out.

409

The status of the requested resource conflicts with that of other resources.

413

The request entity is too large.

500

An internal server error occurs.

501

The requested operation is currently unavailable.

502

Gateway error.

503

Service unavailable.

504

Gateway timed out.

Inference Service Error Codes and Error Messages

Error Code

Variable Name

Error Message

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!