DEFAULT_MSG = "can't follow the response, and response not useable"
end
end
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