code: def _handle_backend_error(self, exception, idp):
          
          loaded_state = self.load_state(exception.state)
          relay_state = loaded_state["relay_state"]
          resp_args = loaded_state["resp_args"]
          error_resp = idp.create_error_response(resp_args["in_response_to"],
                                                 resp_args["destination"],
                                                 Exception(exception.message))
          http_args = idp.apply_binding(resp_args["binding"], str(error_resp), resp_args["destination"], relay_state,
                                        response=True)
  
          satosa_logging(logger, logging.DEBUG, "HTTPargs: %s" % http_args, exception.state)
          return make_saml_response(resp_args["binding"], http_args)
docs: See super class satosa.frontends.base.FrontendModule
  
          :type exception: satosa.exception.SATOSAAuthenticationError
          :type idp: saml.server.Server
          :rtype: satosa.response.Response
  
          :param exception: The SATOSAAuthenticationError
          :param idp: The saml frontend idp server
          :return: A response