From 4b6460e7d564eebff7a79df475a702dbd3f009b9 Mon Sep 17 00:00:00 2001 From: crupest Date: Fri, 23 Apr 2021 19:06:11 +0800 Subject: feat: Fix #51. --- BackEnd/Timeline.ErrorCodes/ErrorCodes.cs | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'BackEnd/Timeline.ErrorCodes/ErrorCodes.cs') 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 -- cgit v1.2.3