diff options
author | 杨宇千 <crupest@outlook.com> | 2019-10-27 22:52:21 +0800 |
---|---|---|
committer | 杨宇千 <crupest@outlook.com> | 2019-10-27 22:52:21 +0800 |
commit | c11a1b7be5d41bb1825a7190c708fdb04923a4fd (patch) | |
tree | 3fcce419f21587d8a872d76b2f654ed81ca842b6 /Timeline/ErrorCodes.cs | |
parent | 181b53e270ff7c0558edec75b8b255d487e796c3 (diff) | |
download | timeline-c11a1b7be5d41bb1825a7190c708fdb04923a4fd.tar.gz timeline-c11a1b7be5d41bb1825a7190c708fdb04923a4fd.tar.bz2 timeline-c11a1b7be5d41bb1825a7190c708fdb04923a4fd.zip |
Add error code tests.
Diffstat (limited to 'Timeline/ErrorCodes.cs')
-rw-r--r-- | Timeline/ErrorCodes.cs | 19 |
1 files changed, 9 insertions, 10 deletions
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;
}
}
}
-
}
}
|