# File lib_core/rucy/response.rb, line 38
    def parse_status
      if (has_header? 'Location') then
        self.status = 302      # Found
      end

      if (value = header('Status')) then
        status, reason = value.split(/\s+/, 2)
        if (status.nil? || status.empty? || reason.nil? || reason.empty?) then
          raise ParseError, "failed to parse a status header: #{header('Status').inspect}"
        end

        if (status =~ /^\d\d\d$/) then
          @status = status.to_i
        else
          raise ParseError, "invalid status code format: #{header('Status').inspect}"
        end
        @reason = reason

        delete_header('Status')
      end

      nil
    end