This file is indexed.

/usr/lib/ruby/1.8/mechanize/response_code_error.rb is in libwww-mechanize-ruby1.8 1.0.0-1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
class Mechanize
  # =Synopsis
  # This error is thrown 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.
  class ResponseCodeError < RuntimeError
    attr_reader :response_code
    attr_reader :page

    def initialize(page)
      @page          = page
      @response_code = page.code
    end

    def to_s
      "#{response_code} => #{Net::HTTPResponse::CODE_TO_OBJ[response_code]}"
    end

    def inspect; to_s; end
  end
end