Generic Error Codes
The Generic Error Code represents the HTTP status code in the API response when an API request fails. Below are some common error codes:
| Error Code | Message | Explanation |
400 | Bad Request | This error occurs when the server cannot process the request due to malformed syntax, invalid request parameters, or missing required information in the request. It typically indicates a client-side issue. |
401 | Unauthorized | This error indicates that the client must authenticate itself to access the requested resource. The request lacks valid authentication credentials (e.g., missing or invalid token, username, or password). |
404 | Not Found | This error occurs when the server cannot find the requested resource. The URL might be incorrect, or the resource may have been moved or deleted. |
500 | Internal Server Error | This error indicates that the server encountered an unexpected condition that prevented it from fulfilling the request. It usually points to a server-side issue, such as a bug or configuration problem. |
| 502 | Bad Gateway | This error occurs when a server acting as a gateway or proxy receives an invalid response from an upstream server. It typically indicates a problem with the server or network between the client and the upstream service. |
| 504 | Gateway Timeout | This error occurs when a gateway or proxy server does not receive a timely response from an upstream server, resulting in a timeout. It often indicates network delays or issues with the upstream server. |