From def8e8dd78812c019a0d6e8e5a3e2de4e82ae3e4 Mon Sep 17 00:00:00 2001 From: 杨宇千 Date: Thu, 17 Oct 2019 20:46:57 +0800 Subject: ... --- Timeline/ErrorCodes.cs | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 Timeline/ErrorCodes.cs (limited to 'Timeline/ErrorCodes.cs') diff --git a/Timeline/ErrorCodes.cs b/Timeline/ErrorCodes.cs new file mode 100644 index 00000000..0b325e27 --- /dev/null +++ b/Timeline/ErrorCodes.cs @@ -0,0 +1,29 @@ +namespace Timeline +{ + /// + /// All error code constants. + /// + /// + /// Scheme: + /// abbbccdd + /// + public static partial class ErrorCodes + { + public static partial class Http // a = 1 + { + public static class Common // bbb = 000 + { + public const int InvalidModel = 10000000; + + public static class Header // cc = 01 + { + public const int Missing_ContentType = 10010101; // dd = 01 + public const int Missing_ContentLength = 10010102; // dd = 02 + public const int Zero_ContentLength = 10010103; // dd = 03 + public const int BadFormat_IfNonMatch = 10010104; // dd = 04 + } + } + } + + } +} -- cgit v1.2.3