This error is raised when Mechanize encounters a response code it does not know how to handle. Currently, this exception will be thrown if Mechanize encounters response codes other than 200, 301, or 302. Any other response code is up to the user to handle.
# File lib/mechanize/response_code_error.rb, line 17 17: def to_s 18: response_class = Net::HTTPResponse::CODE_TO_OBJ[@response_code] 19: out = "#{@response_code} => #{response_class} " 20: out << "for #{@page.uri} " if @page.respond_to? :uri # may be HTTPResponse 21: out << "-- #{super}" 22: end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.