'Parse the status line into its components and create a response object
to keep track of this response\'s state.'

def statusReceived(self, status):

    parts = status.split('    ', 2)
    if (len(parts) == 2):
        (version, codeBytes) = parts
        phrase = ''
    elif (len(parts) == 3):
        (version, codeBytes, phrase) = parts
    else:
        raise ParseError(u'wrong    number    of    parts', status)
    try:
        statusCode = int(codeBytes)
    except ValueError:
        raise ParseError(u'non-integer    status    code', status)
    self.response = Response._construct(self.parseVersion(version), statusCode, phrase, self.headers, self.transport, self.request)
