Error Code
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 code | Description |
|---|---|
| 0 | Normal return |
| 401 | No permission or verification failed |
| 429 | Request overrun |
| 404 | Resource does not exist |
| 500 | Service exception |
Service exception
Service exceptions are distinguished by a 4-digit number starting with a number
| Error code | Description |
|---|---|
| 0 | Normal return |
| 4XXX | Verification error |
| 5XXX | Service error |
| 4000 | Verification error, please check the parameters |
| 4001 | Insufficient promotion resources |
| 4002 | Unreviewed |
| 4003 | Plans can only be applied manually |
| 4004 | Incoming wrong media or promotion position |
| 4005 | Plan not applied |
| 4010 | Taobao authorization required |
| 4011 | Plan does not exist |
| 4020 | Product does not exist |
| 5001 | Busy network |