Error Code

2 min read

About the error

Duomai Alliance API returns HTTP CODE as 200 for normal requests, and 400 for CODE under abnormal conditions. The program-level return throws will contain two fields, status and message, as follows:

{
  "status": 0,
  "message": ""
}

Under normal circumstances, you can determine what the error is based on the value of status and give corresponding feedback.

Global status=0 means normal return.

Gateway abnormal

The maximum number of gateway exceptions is 3 digits, and the default is as follows

Error codeDescription
0Normal return
401No permission or verification failed
429Request overrun
404Resource does not exist
500Service exception

Service exception

Service exceptions are distinguished by a 4-digit number starting with a number

Error codeDescription
0Normal return
4XXXVerification error
5XXXService error
4000Verification error, please check the parameters
4001Insufficient promotion resources
4002Unreviewed
4003Plans can only be applied manually
4004Incoming wrong media or promotion position
4005Plan not applied
4010Taobao authorization required
4011Plan does not exist
4020Product does not exist
5001Busy network