HTTP Status Codes
AML Watcher uses conventional HTTP response codes to indicate the success or failure of an API request. Every response is generated in JSON with a specific HTTP code. Below is a complete list of status codes.
| HTTP code | HTTP message | Message |
|---|---|---|
| 200 | OK | Success |
| 201 | Created | Created |
| 400 | Bad Request | Bad Request: One or more parameter is invalid or missing |
| 401 | Unauthorized | Unauthorized: Invalid token provided |
| 403 | Forbidden | Access forbidden |
| 404 | Not Found | Resource not found |
| 405 | Method not allowed | A request was made of a resource using a request method not supported by that resource. |
| 422 | Invalid request | Unprocessable Content: syntax of the request entity is not correct |
| 429 | Too many requests | Server detects too many attempts within a short period of time |
| 500 | Server Error | Internal server error |