class WWW::Mechanize::ResponseCodeError
Any other response code is up to the user to handle.
if Mechanize encounters response codes other than 200, 301, or 302.
not know how to handle. Currently, this exception will be thrown
This error is thrown when Mechanize encounters a response code it does
=Synopsis
def initialize(page)
def initialize(page) @page = page @response_code = page.code end
def inspect; to_s; end
def inspect; to_s; end
def to_s
def to_s "#{response_code} => #{Net::HTTPResponse::CODE_TO_OBJ[response_code]}" end