diff --git a/src/backend/mailbox_manager/utils/dimail.py b/src/backend/mailbox_manager/utils/dimail.py index 07bbb4610..1a21aadff 100644 --- a/src/backend/mailbox_manager/utils/dimail.py +++ b/src/backend/mailbox_manager/utils/dimail.py @@ -84,7 +84,7 @@ def send_mailbox_request(self, mailbox): mailbox.domain.name, extra=extra, ) - elif response.status_code == 403: + elif response.status_code == status.HTTP_403_FORBIDDEN: logger.error( "[DIMAIL] 403 Forbidden: please check the mail domain secret of %s", mailbox.domain.name,