'Gets the reply header (including status and
additional crlf)'

def get_reply_header_text(self):

    header_tuples = self.get_reply_headers()
    headers = [self.response(self.reply_code)]
    headers += [('%s:    %s' % h) for h in header_tuples]
    return ('\r\n'.join(headers) + '\r\n\r\n')
