From c11a1b7be5d41bb1825a7190c708fdb04923a4fd Mon Sep 17 00:00:00 2001 From: 杨宇千 Date: Sun, 27 Oct 2019 22:52:21 +0800 Subject: Add error code tests. --- Timeline/ErrorCodes.cs | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) (limited to 'Timeline/ErrorCodes.cs') diff --git a/Timeline/ErrorCodes.cs b/Timeline/ErrorCodes.cs index 5e7f003a..c246953b 100644 --- a/Timeline/ErrorCodes.cs +++ b/Timeline/ErrorCodes.cs @@ -15,22 +15,21 @@ { public const int InvalidModel = 10000000; - public static class Header // cc = 01 + public static class Header // cc = 0x { - public const int Missing_ContentType = 10000101; // dd = 01 - public const int Missing_ContentLength = 10000102; // dd = 02 - public const int Zero_ContentLength = 10000103; // dd = 03 - public const int BadFormat_IfNonMatch = 10000104; // dd = 04 + public static class IfNonMatch // cc = 01 + { + public const int BadFormat = 10000101; + } } - public static class Content // cc = 02 + public static class Content // cc = 11 { - public const int TooBig = 1000201; - public const int UnmatchedLength_Smaller = 10030202; - public const int UnmatchedLength_Bigger = 10030203; + public const int TooBig = 10001101; + public const int UnmatchedLength_Smaller = 10001102; + public const int UnmatchedLength_Bigger = 10001103; } } } - } } -- cgit v1.2.3