aboutsummaryrefslogtreecommitdiff
path: root/BackEnd/Timeline.ErrorCodes/ErrorCodes.cs
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2021-04-23 19:06:11 +0800
committercrupest <crupest@outlook.com>2021-04-23 19:06:11 +0800
commit4b6460e7d564eebff7a79df475a702dbd3f009b9 (patch)
tree0c4cbc09b95713edcbae9858d709d71a2043e60e /BackEnd/Timeline.ErrorCodes/ErrorCodes.cs
parent15eb51e4b5014e1969677819ced1892c9e41944a (diff)
downloadtimeline-4b6460e7d564eebff7a79df475a702dbd3f009b9.tar.gz
timeline-4b6460e7d564eebff7a79df475a702dbd3f009b9.tar.bz2
timeline-4b6460e7d564eebff7a79df475a702dbd3f009b9.zip
feat: Fix #51.
Diffstat (limited to 'BackEnd/Timeline.ErrorCodes/ErrorCodes.cs')
-rw-r--r--BackEnd/Timeline.ErrorCodes/ErrorCodes.cs10
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