diff options
author | crupest <crupest@outlook.com> | 2021-04-23 19:06:11 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2021-04-23 19:06:11 +0800 |
commit | 93bf679e0f882a20c560ca0cc7211185d6cdb31a (patch) | |
tree | 5b580c3f18ccbe56d923e4001b53bbd932ce924c /BackEnd/Timeline.ErrorCodes/ErrorCodes.cs | |
parent | b0b95bd1c7cf97bfa9fc2886f10a871a7c252b6a (diff) | |
download | timeline-93bf679e0f882a20c560ca0cc7211185d6cdb31a.tar.gz timeline-93bf679e0f882a20c560ca0cc7211185d6cdb31a.tar.bz2 timeline-93bf679e0f882a20c560ca0cc7211185d6cdb31a.zip |
feat: Fix #51.
Diffstat (limited to 'BackEnd/Timeline.ErrorCodes/ErrorCodes.cs')
-rw-r--r-- | BackEnd/Timeline.ErrorCodes/ErrorCodes.cs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/BackEnd/Timeline.ErrorCodes/ErrorCodes.cs b/BackEnd/Timeline.ErrorCodes/ErrorCodes.cs index 4c3b6cd8..87d451f2 100644 --- a/BackEnd/Timeline.ErrorCodes/ErrorCodes.cs +++ b/BackEnd/Timeline.ErrorCodes/ErrorCodes.cs @@ -13,6 +13,7 @@ public const int InvalidModel = 1_000_0001;
public const int Forbid = 1_000_0002;
public const int UnknownEndpoint = 1_000_0003;
+ public const int Unauthorized = 1_000_0004;
public static class Header
{
@@ -24,6 +25,15 @@ {
public const int TooBig = 1_000_11_01;
}
+
+ public static class Token
+ {
+ public const int TimeExpired = 1_000_21_01;
+ public const int VersionExpired = 1_000_21_02;
+ public const int BadFormat = 1_000_21_03;
+ public const int UserNotExist = 1_000_21_04;
+ public const int Unknown = 1_000_21_05;
+ }
}
public static class UserCommon
|