API Status Codes
This section outlines the standard status codes returned by our API. These codes provide information about what went wrong with a request and help developers diagnose and resolve issues effectively. Each code is accompanied by a human-readable message to assist in understanding the context of the error.
In every API response, you’ll find a meta
object that contains the code
and message
fields. The code
is a machine-readable identifier representing the result of the request, while the message
provides a human-readable explanation of the code when applicable. A successful response typically includes a code
of 1000
and a message
of null
. For error responses, the code
corresponds to one of the values listed below, and the message
will contain a descriptive explanation to help guide error handling.
Code | Name | Message |
---|---|---|
500 | FAILED | null |
1000 | SUCCESS | null |
1001 | SOMETHING WENT WRONG | Something went wrong. Please try again later. |
1002 | BAD REQUEST | Bad Request |
1003 | NOT FOUND | Route not found. |
1004 | UNAUTHORIZED | UnAuthorized |
1005 | FORBIDDEN | Forbidden |
1006 | SERVICE UNAVAILABLE | Maintenance mode |
1007 | UNPROCESSABLE ENTITY | The given data is invalid. |
1008 | TOO MANY REQUESTS | Too many requests. Please try again later. |
1009 | INTERNAL SERVER ERROR | Server Error |
1100 | USER SUSPENDED | Your account has been suspended. |
1401 | REACH LIMIT CREDIT | You reached credit limit. |