def METHOD_NAME(self, response, context):
    """
    Check if the response is an error response.
    :param response: the response from finalize()
    :type response: oic.oic.message
    :raise SATOSAAuthenticationError: if the response is an OAuth error response
    """
    if "error" in response:
        msg = "{name} error: {error} {description}".format(
            name=type(response).__name__,
            error=response["error"],
            description=response.get("error_description", ""),
        )
        logline = lu.LOG_FMT.format(id=lu.get_session_id(context.state), message=msg)
        logger.debug(logline)
        raise SATOSAAuthenticationError(context.state, "Access denied")