diff --git a/matrix_webhook/utils.py b/matrix_webhook/utils.py index 73c15ea..4116073 100644 --- a/matrix_webhook/utils.py +++ b/matrix_webhook/utils.py @@ -10,7 +10,10 @@ from nio.responses import RoomSendError, JoinError from . import conf -ERROR_MAP = {"M_FORBIDDEN": HTTPStatus.FORBIDDEN} +ERROR_MAP = { + "M_FORBIDDEN": HTTPStatus.FORBIDDEN, + "M_CONSENT_NOT_GIVEN": HTTPStatus.FORBIDDEN, +} LOGGER = logging.getLogger("matrix_webhook.utils") CLIENT = AsyncClient(conf.MATRIX_URL, conf.MATRIX_ID)