push_notifs: Improve error responses from /test_notification endpoint.

This commit is contained in:
Mateusz Mandera
2023-10-08 00:43:41 +02:00
committed by Tim Abbott
parent d43be2b7c4
commit 7604c7935c
7 changed files with 110 additions and 17 deletions

View File

@@ -25,6 +25,8 @@ class ErrorCode(Enum):
CSRF_FAILED = auto()
INVITATION_FAILED = auto()
INVALID_ZULIP_SERVER = auto()
INVALID_PUSH_DEVICE_TOKEN = auto()
INVALID_REMOTE_PUSH_DEVICE_TOKEN = auto()
INVALID_MARKDOWN_INCLUDE_STATEMENT = auto()
REQUEST_CONFUSING_VAR = auto()
INVALID_API_KEY = auto()