def _WriteErrorToOutput(status, message, outfile):
 logging.error(message)
 outfile.write(('Status: %s\r\n\r\n%s' % (status, message)))

def _WriteErrorToOutput ( status , message , outfile ) : logging . error ( message ) outfile . write ( ( 'Status: %s\r\n\r\n%s' % ( status , message ) ) )
writes an error status response to the response outfile .