'Report a connection failure in a response to the incoming request as
an error.'

def clientConnectionFailed(self, connector, reason):

    self.father.setResponseCode(501, 'Gateway    error')
    self.father.responseHeaders.addRawHeader('Content-Type', 'text/html')
    self.father.write('<H1>Could    not    connect</H1>')
    self.father.finish()
