# File lib_doc/rucy/redirect.rb, line 52
    def new(location, status)
      if (! location || location.empty?) then
        raise 'required location path.'
      end
      case (status)
      when '302 Found'
        code = 302
      when '303 See Other'
        code = 303
      when '301 Moved Permanently'
        code = 301
      when '307 Temporary Redirect'
        code = 307
      else
        raise "unknown redirect status: #{status.inspect}"
      end
      RedirectDocument.new(location, code)
    end