diff options
| author | Daniel Weipert <git@mail.dweipert.de> | 2025-08-14 14:37:56 +0200 |
|---|---|---|
| committer | Daniel Weipert <git@mail.dweipert.de> | 2025-08-14 14:37:56 +0200 |
| commit | c135fcf9041c604b32827a1cb027010bca5915ab (patch) | |
| tree | 95a2331d5f0bc4a736aa0e716330c39b3fa1ea26 /src/ErrorCode.php | |
| parent | 3f4b51b99a4f4dc41dbdce7f34afe7e15d3d426e (diff) | |
POST login possible
Diffstat (limited to 'src/ErrorCode.php')
| -rw-r--r-- | src/ErrorCode.php | 47 |
1 files changed, 0 insertions, 47 deletions
diff --git a/src/ErrorCode.php b/src/ErrorCode.php deleted file mode 100644 index 2149d37..0000000 --- a/src/ErrorCode.php +++ /dev/null @@ -1,47 +0,0 @@ -<?php - -namespace App; - -enum ErrorCode: string -{ - case FORBIDDEN = "M_FORBIDDEN"; - case UNKNOWN_TOKEN = "M_UNKNOWN_TOKEN"; - case MISSING_TOKEN = "M_MISSING_TOKEN"; - case USER_LOCKED = "M_USER_LOCKED"; - case USER_SUSPENDED = "M_USER_SUSPENDED"; - case BAD_JSON = "M_BAD_JSON"; - case NOT_JSON = "M_NOT_JSON"; - case NOT_FOUND = "M_NOT_FOUND"; - case LIMIT_EXCEEDED = "M_LIMIT_EXCEEDED"; - case UNRECOGNIZED = "M_UNRECOGNIZED"; - case UNKNOWN = "M_UNKNOWN"; - - case UNAUTHORIZED = "M_UNAUTHORIZED"; - case USER_DEACTIVATED = "M_USER_DEACTIVATED"; - case USER_IN_USE = "M_USER_IN_USE"; - case INVALID_USERNAME = "M_INVALID_USERNAME"; - case ROOM_IN_USE = "M_ROOM_IN_USE"; - case INVALID_ROOM_STATE = "M_INVALID_ROOM_STATE"; - - case THREEPID_IN_USE = "M_THREEPID_IN_USE"; - case THREEPID_NOT_FOUND = "M_THREEPID_NOT_FOUND"; - case THREEPID_AUTH_FAILED = "M_THREEPID_AUTH_FAILED"; - case THREEPID_DENIED = "M_THREEPID_DENIED"; - case THREEPID_MEDIUM_NOT_SUPPORTED = "M_THREEPID_MEDIUM_NOT_SUPPORTED"; - - case SERVER_NOT_TRUSTED = "M_SERVER_NOT_TRUSTED"; - case UNSUPPORTED_ROOM_VERSION = "M_UNSUPPORTED_ROOM_VERSION"; - case INCOMPATIBLE_ROOM_VERSION = "M_INCOMPATIBLE_ROOM_VERSION"; - case BAD_STATE = "M_BAD_STATE"; - case GUEST_ACCESS_FORBIDDEN = "M_GUEST_ACCESS_FORBIDDEN"; - - case CAPTCHA_NEEDED = "M_CAPTCHA_NEEDED"; - case CAPTCHA_INVALID = "M_CAPTCHA_INVALID"; - - case MISSING_PARAM = "M_MISSING_PARAM"; - case INVALID_PARAM = "M_INVALID_PARAM"; - case TOO_LARGE = "M_TOO_LARGE"; - case EXCLUSIVE = "M_EXCLUSIVE"; - case RESOURCE_LIMIT_EXCEEDED = "M_RESOURCE_LIMIT_EXCEEDED"; - case CANNOT_LEAVE_SERVER_NOTICE_ROOM = "M_CANNOT_LEAVE_SERVER_NOTICE_ROOM"; -} |
