Last change
on this file since 497 was 486, checked in by alloc, 9 months ago |
22.0.1.1 WebServer release
- Moved API error codes from string literals to enum
|
File size:
1.3 KB
|
Line | |
---|
1 | namespace Webserver.WebAPI
|
---|
2 | {
|
---|
3 | public enum EApiErrorCode {
|
---|
4 | NO_PERMISSION,
|
---|
5 |
|
---|
6 | // User management:
|
---|
7 | NO_USER,
|
---|
8 | INVALID_USER,
|
---|
9 |
|
---|
10 | // Blacklist:
|
---|
11 | NO_OR_INVALID_BANNED_UNTIL,
|
---|
12 |
|
---|
13 | // Command / CommandPermissions:
|
---|
14 | NO_COMMAND,
|
---|
15 | UNKNOWN_COMMAND,
|
---|
16 |
|
---|
17 | // Permissions related:
|
---|
18 | NO_OR_INVALID_PERMISSION_LEVEL,
|
---|
19 | NO_OR_INVALID_PERMISSION_LEVEL_MODS,
|
---|
20 | NO_OR_INVALID_PERMISSION_LEVEL_NORMAL,
|
---|
21 |
|
---|
22 | // User registration:
|
---|
23 | INVALID_OR_EXPIRED_TOKEN,
|
---|
24 | MISSING_TOKEN,
|
---|
25 | MISSING_USERNAME,
|
---|
26 | MISSING_PASSWORD,
|
---|
27 | INVALID_USERNAME,
|
---|
28 | INVALID_PASSWORD,
|
---|
29 | DUPLICATE_USERNAME,
|
---|
30 |
|
---|
31 | // WebApiTokens:
|
---|
32 | NO_NAME,
|
---|
33 | NO_OR_INVALID_SECRET,
|
---|
34 |
|
---|
35 | // WebModules:
|
---|
36 | NO_MODULE,
|
---|
37 | INVALID_MODULE,
|
---|
38 | INVALID_PERMISSION_LEVEL_GLOBAL,
|
---|
39 | INVALID_PERMISSION_LEVEL_PER_METHOD_PROPERTY,
|
---|
40 | INVALID_METHOD_NAME,
|
---|
41 | UNSUPPORTED_METHOD,
|
---|
42 | INVALID_PERMISSION_STRING,
|
---|
43 | INVALID_PERMISSION_VALUE,
|
---|
44 | INVALID_PERMISSION_VALUE_TYPE,
|
---|
45 |
|
---|
46 | // WebUsers:
|
---|
47 | NO_OR_INVALID_PASSWORD,
|
---|
48 | NO_PLATFORM_USER_ID,
|
---|
49 | INVALID_PLATFORM_USER_ID,
|
---|
50 | INVALID_CROSSPLATFORM_USER_ID,
|
---|
51 | NO_USERNAME,
|
---|
52 | }
|
---|
53 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.