errors.rb revision c53b52986e31858575023886cdd7327fccd8949c
DEFAULT_MSG = 'too many HTTP redirects encountered'
end
end
# Status-Code should be only used as an option if
# you don't have the response object available.
super(msg || generate_message)
end
<<-ERROR
Encountered an unexpected status code of #{status_code}.
#{"Here is the full response: <#{response}>" if response}
ERROR
end
end
end
end