Updated on 2023-06-06 GMT+08:00

Error Code

If an error occurs in API calling, no result is returned. Identify the cause of error based on the error codes of each API. If an error occurs in API calling, HTTP status code 4xx or 5xx is returned. The response body contains the specific error code and information.

Format of an Error Response Body

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

{ 
    "error_msg": "The format of message is error", 
    "error_code": "AS.0001" 
}

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

Error Code

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.
Table 1 Error codes

Status Code

Error Code

Error Message

Solution

401

CBS.0000

The user does not have the OBT permission.

Apply for the open beta test permission according to the prompts.

401

CBS.0011

Authentication failed.

Correct the token ID and try again.

401

CBS.0012

Authentication information is missing.

Correct the authentication information and try again.

401

CBS.0013

Failed to obtain the authentication information.

Correct the token ID and try again.

400

CBS.0021

Request parameter error.

Correct the field names in the request parameters and try again.

400

CBS.0022

Incorrect request parameter settings.

Correct the request parameter settings and try again.

500

CBS.9999

Database error.

Service backend error. Please contact technical support.

500

CBS.9998

IAM error.

Service backend error. Please contact technical support.

500

CBS.9997

Lab core error.

Service backend error. Please contact technical support.

400

CBS.1114

The service has not been enabled.

Enable or subscribe to the service according to prompts.

400

CBS.1124

Failed to enable the service.

Check whether the service enabling conditions are met. If the conditions are met, try again.

500

CBS.1134

Failed to deliver the request.

Service backend error. Please contact technical support.

500

CBS.0031

The internal service is abnormal.

Service backend error. Please contact technical support.

500

CBS.0032

The Elasticsearch resource does not exist.

Service backend error. Please contact technical support.

400

CBS.1214

The dataset resource to be queried does not exist.

Correct the dataset ID and try again.

400

CBS.1611

OBS access failed.

Correct the OBS authentication information and try again.

400

CBS.1612

The OBS resource does not exist.

Ensure that the OBS resource exists and try again.

400

CBS.1613

File format error.

Confirm that the file format meets the requirements and try again.

400

CBS.2114

The Q&A bot to be queried does not exist.

Correct the Q&A bot ID and try again.

400

CBS.2122

Incorrect parameter settings for Q&A bot creation.

Correct the parameter settings for Q&A bot creation and try again.

400

CBS.2125

The number of bots exceeds the upper limit.

Ensure that up to three bots are created and try again.

400

CBS.2145

The knowledge bases, dictionaries, and models related to the lab are not deleted.

Delete the knowledge bases, dictionaries, and models related to the lab and try again.

400

CBS.2154

The Q&A bot to be restarted does not exist.

Correct the Q&A bot ID and try again.

400

CBS.2202

Incorrect parameter settings for knowledge base importing.

Correct the parameter settings for knowledge base importing and try again.

400

CBS.2203

Incorrect format of the file to be imported to the knowledge base.

Correct the file format and try again.

400

CBS.2205

The number of Q&A pairs to be imported to the knowledge base exceeds the upper limit.

Ensure that the number of Q&A pairs to be imported to the knowledge base does not exceed 1 million and try again.

400

CBS.2611

OBS access failed.

Confirm that the account has the permission to access OBS and try again.

400

CBS.2624

The OBS bucket does not exist.

Ensure that the OBS bucket exists and try again.

400

CBS.2641

Incorrect setting for the path parameter in the URI.

Correct the path parameter setting in the URI and try again.

400

CBS.2312

Incorrect body parameter settings.

Correct the body parameter settings and try again.

400

CBS.2322

Incorrect Q&A request parameters.

Correct the body parameter settings and try again.

400

CBS.2334

The answer to be evaluated does not exist.

Correct the request ID and try again.

400

CBS.2344

The conversation to be handed off to a human agent does not exist.

Correct the request ID and try again.

400

CBS.2412

Incorrect parameter settings for the text sequence to be checked.

Correct the body parameter settings and try again.

400

CBS.2413

Incorrect format of the text sequence to be checked.

Correct the format of the text sequence and try again.

400

CBS.0001

The user request parameter is incorrect.

Check and modify the request parameters based on the error message.

401

CBS.0002

Authentication failed.

Check whether the token is correct and try again using the correct token.

400

CBS.0003

Failed to find the requested resource.

Check whether the requested resource ID is correct based on the error message.