Method: Chassis::ServerErrorHandler#on_complete
- Defined in:
- lib/chassis/faraday.rb
#on_complete(env) ⇒ Object
109 110 111 112 113 |
# File 'lib/chassis/faraday.rb', line 109 def on_complete(env) status = env.fetch :status return unless (400..600).include? status raise HTTP_STATUS_CODE_ERROR_MAP.fetch(status), env end |