Error Codes & Response Format

Response wrapper

{
  "code": 0,
  "message": "OK",
  "data": { ... }
}
  • code = 0: success

  • code ≠ 0: an error occurred.

Common error codes

HTTP Status
Code
Reason

400

1001

Invalid parameters

401

1002

Unauthorized / invalid key

403

1003

Forbidden / insufficient permissions

404

1004

Resource not found

429

1005

Rate limit exceeded

500

1006

Internal server error

Last updated