Clik2pay's REST APIs use conventional HTTP status codes to indicate the success or failure of API requests.
HTTP status code
The following table lists the HTTP status code and its meaning.
| Status Code | Description | 
|---|---|
| 200 - OK | The request has succeeded. | 
| 201 - Created | The request has been fulfilled and has resulted in one or more new resources being created. | 
| 400 - Bad Request | An invalid input is provided, such as poorly formatter query parameters or JSON input. | 
| 401 - Unauthorized | The user is unknown (expired/invalid/no auth token) | 
| 403 - Forbidden | The user does not have permission to perform the requested operation | 
| 404 - Not Found | The resource provided in the URL was not found. | 
| 429 - Too Many Requests | Rate limits have been exceeded. This may also indicate that max payment limit has been exceeded. | 
| 500 - Internal Server Error | An unexpected error occurred inside the server that prevented it from fulfilling the request. | 
