pengwynn/faraday_middleware — pull request #41 by spagalloco (2012-05-31 19:32:18+00:00)
Title: RaiseServerError Middleware to handle 400's and 500's

I find this to be a common need of mine for handling errors returned from a server. For now, it's handling all responses that are 400/500's but I could see the need for an `only` option so that a custom middleware could be used to handle errors more specifically. I was up in the air on the naming of this, but felt RaiseServerError encapsulates it well.