The success or failure of an API request is indicated by the associated HTTP response codes. API response codes that indicate errors normally display as 4xx for client errors and 5xx for server errors.

You can refer to the List of HTTP Status Codes for more detailed information.