Updated on 2022-10-31 GMT+08:00

Error Codes

If an error occurs in API calling and no result is returned, you can locate the cause based on the error code of each API. The returned message body contains the specific error code and error information.

Error Response Body Format

If an error occurs during API calling, an error code and the corresponding error message will be displayed. The following shows an error response body:

{
 "error": {
  "code": "DEV.CH.10001",
  "message": "Param invalid"
 },
 "status": "failed"
}

In the response body, error_code is an error code, and error_msg provides information about the error.

If an error code starting with APIGW is returned after you call an API, rectify the fault by referring to the instructions provided in API Gateway Error Codes

Status Code

Error Code

Error Message

Description

Measure

400

CH.010001

Invalid parameter value format.

Param invalid

Check parameters.

401

CH.080401

You do not have the permission to access the resource.

No Permission

Check the repository role and permission of a user.

403

CH.080403

Access denied.

Forbidden

Check the request path.

404

CH.000404

Resource unavailable.

Not Found

Check whether the resource ID or resource name is correct.

500

CH.000001

Unknown error.

Unknown error

System error. Please wait.

504

CH.080504

Request timed out.

Gateway Timeout

Check the network.