In this guide, we will talk about what happens when something goes wrong while you work with the API. Let's look at some status codes and error types you might encounter.
You can tell if your request was successful by checking the status code when receiving an API response. If a response comes back unsuccessful, you can use the error message to figure out what has gone wrong and do some rudimentary debugging (before contacting support).
Here is a list of the different categories of status codes returned by the InfiniteProxies API. Use these to understand if a request was successful.
A 2xx status code indicates a successful response.
A 4xx status code indicates a client error — this means it's a you problem.
A 5xx status code indicates a server error — this means it's a us problem.
Rate limiting is a mechanism to control the number of requests made to the API. This is to prevent abuse and to ensure that the API is available to everyone.
If you exceed the rate limit, you will receive a
429 Too Many Requests status code. The response will also contain a
Retry-After header, which indicates how long you should wait before retrying the request.
For safety reasons, the rate limit is not documented. If you need to make more requests than the rate limit allows, please contact our support team.