Skip to main content
When interacting with our API, it’s important to understand the different error codes that can occur during a request. These error codes help indicate what went wrong and can guide you in troubleshooting the issue. Below is a list of common error codes returned by the API, along with their descriptions and possible solutions.

❌ Common Error Codes


Error Handling Tips

  • Check the Response Body: In most cases, the response body will contain additional information regarding the error, such as error messages or codes that can help you pinpoint the issue.
  • Rate Limits: If you encounter a 429 error, avoid sending requests too frequently. Implement exponential backoff to retry requests after waiting for the rate limit to reset.
  • Authentication: A 403 Forbidden error may be due to incorrect API key or insufficient permissions. Ensure that your key is valid and has the right scopes to access the resource.
  • Testing: Always test your API calls in a controlled environment to ensure that the request format and parameters are correct.
📌 Tip: Always handle errors gracefully in your application. Proper error handling ensures that users have a better experience, even when things go wrong!

How to Handle Errors in Your Code

It’s good practice to incorporate error-handling logic in your API requests. Here’s an example in Python for handling different types of errors:

Python Example: