Updated on 2023-03-07 GMT+08:00

Error Codes

If an error occurs in API calling, no result is returned. Identify the cause of error based on the error codes and error information of each API. If an error occurs in API calling, HTTPS status code 4xx or 5xx is returned. The response body contains the specific error code and information. If you are unable to identify the cause of an error, contact O&M personnel and provide the error code so that O&M personnel can help you solve the problem as soon as possible.

Format of an Error Response Body

If an error occurs during API calling, the system returns an error code and message to you. Table 1 shows the format of an error response body.

Table 1 Error response parameters

Parameter

Type

Description

error_msg

String

Error code

error_code

String

Error description

Example:

{
  "error_code": "BCS.4006009",
  "error_msg": "one of parameters is nil"
}

Error Code Description

Table 2 Error codes

Status Code

Error Code

Error Message

Solution

200

BCS.2001002

OneStepPurchase4Need successfully.

Request successful.

400

BCS.4006009

one of parameters is nil

Specify a value for the parameters.

400

BCS.4001051

Input org org1 is not exist

Check the parameters.

400

BCS.4030403

forbidden to project [project_id]

Check the project ID.

400

BCS.4006003

json: cannot unmarshal object into Go value of type []apis.PeersToChannelAdd

Check whether the parameter meets requirements.

400

BCS.4006005

ActOnDetailNotification fail

Contact technical support.