Error codes
HTTP status is usually 200; business success is determined by response code. Success when code === 0.
| code | Meaning |
|---|---|
| 0 | Success |
| 40000 | Invalid request body |
| 40004 | Order failed (insufficient balance, product not found, etc.) |
| 40100 | Authentication failed / missing headers |
| 40101 | Invalid signature or timestamp |
| 40400 | Resource not found |
| 50000 | Internal error |
| 50201 | Upstream temporarily unavailable (dynamic extract, etc.) |