I search this group and the issue queue, but I could not find a discussion.
Let's say I queue a bunch of requests to an API and then run the queue. At some point, I hit the rate limit and the server no longer responds with a 200 HTTP code. I would like to be able to have Typhoeus stop sending requests after it receives that first bad response. What is the best way to do it? Raising an exception inside a request's #on_complete when a rate limit is exceeded does the trick. Curious to hear if anyone has considered other alternatives. The following gist has sample code using plain Typhoeus and Typhoeus with Faraday.
Thanks,
James