Class: Dillo::Response::RaiseClientError

Inherits:
Faraday::Response::Middleware
  • Object
show all
Defined in:
lib/dillo.rb

Instance Method Summary collapse

Instance Method Details

#on_complete(env) ⇒ Object



13
14
15
16
17
18
# File 'lib/dillo.rb', line 13

def on_complete(env)
  case env[:status].to_i
    when 403
      raise env[:response_headers][:x_error_message]
  end
end