Faraday::RaiseErrors
Faraday middleware that raises exceptions for HTTP errors in the 400..599 range.
Installation
Add this line to your application's Gemfile:
gem "faraday-raise_errors"
And then execute:
$ bundle
Or install it yourself as:
$ gem install faraday-raise_errors
Usage
connection = Faraday.new
connection.use Faraday::RaiseErrors
Contributing
- Fork it ( https://github.com/boblail/faraday-raise_errors/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request