class Faraday::Response::RaiseResponseError

Public Instance Methods

on_complete(env) click to toggle source
# File lib/faraday/response/raise_response_error.rb, line 6
def on_complete(env)
  status = env[:status].to_i

  if (400..599).include?(status)
    raise SaasRunner::ResponseError.new(env)
  end
end