This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Keybase proof | |
I hereby claim: | |
* I am adoseofjess on github. | |
* I am adoseofjess (https://keybase.io/adoseofjess) on keybase. | |
* I have a public key whose fingerprint is 82B4 70D1 3B83 E2B6 6C65 5B28 9276 B351 3E77 6543 | |
To claim this, I am signing this object: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Keybase proof | |
I hereby claim: | |
* I am adoseofjess on github. | |
* I am adoseofjess (https://keybase.io/adoseofjess) on keybase. | |
* I have a public key whose fingerprint is F833 A5E6 E90D 73BE 3DDA 300E EDF0 9535 EEA1 2D45 | |
To claim this, I am signing this object: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Faraday | |
class Response::RaiseError < Response::Middleware | |
ClientErrorStatuses = 400...600 | |
def on_complete(env) | |
case env[:status] | |
when 404 | |
raise Faraday::Error::ResourceNotFound, response_values(env) | |
when 407 | |
# mimic the behavior that we get with proxy requests with HTTPS |