class Faraday::Env

def success?

Returns:
  • (Boolean) - true if status is in the set of {SuccessfulStatuses}.
def success?
  SuccessfulStatuses.include?(status)
end