code: def _writeFault(self, fail, request):
          
          response = fault.FaultFromException(fail.value, False, fail.tb).AsSOAP() 
          self._writeResponse(response, request, status=500)
docs: fail -- failure
          request -- request message
          ex -- Exception