'Send the response header and log the response code.
Also send two standard headers with the server software
version and the current date.'

def send_response(self, code, message=None):

    self.log_request(code)
    if (message is None):
        if (code in self.responses):
            message = self.responses[code][0]
        else:
            message = ''
    if (self.request_version != 'HTTP/0.9'):
        self.wfile.write(('%s    %d    %s\r\n' % (self.protocol_version, code, message)))
    self.send_header('Server', self.version_string())
    self.send_header('Date', self.date_time_string())
