Looking for Example of Faraday Middleware with Error checking

Viewed 14658

I am looking for an example of Faraday Middleware that handles http (status code) errors on requests and additionally network timeouts.

After reading the docs for Faraday and it's middleware it's my understanding that this is one of middleware's use cases… I just have no idea what an implementation is supposed to look like.

Thanks

1 Answers
Related