aboutsummaryrefslogtreecommitdiff
path: root/Timeline/ErrorCodes.cs
diff options
context:
space:
mode:
author杨宇千 <crupest@outlook.com>2019-10-24 20:15:58 +0800
committerGitHub <noreply@github.com>2019-10-24 20:15:58 +0800
commit4ab69665f26aaa59bad8684e6b801b4c4cf900cd (patch)
tree7ca5010a06829cc5fadea1ea17ae72d082fc344c /Timeline/ErrorCodes.cs
parent21de8da2feab19d3fbc392e71bf0dcec25ec8d6b (diff)
parent2bc4c701f9cdff1fdd11a5736c33a5818fbae3e9 (diff)
downloadtimeline-4ab69665f26aaa59bad8684e6b801b4c4cf900cd.tar.gz
timeline-4ab69665f26aaa59bad8684e6b801b4c4cf900cd.tar.bz2
timeline-4ab69665f26aaa59bad8684e6b801b4c4cf900cd.zip
Merge pull request #50 from crupest/refactor
Refactor : A Huge Step
Diffstat (limited to 'Timeline/ErrorCodes.cs')
-rw-r--r--Timeline/ErrorCodes.cs36
1 files changed, 36 insertions, 0 deletions
diff --git a/Timeline/ErrorCodes.cs b/Timeline/ErrorCodes.cs
new file mode 100644
index 00000000..5e7f003a
--- /dev/null
+++ b/Timeline/ErrorCodes.cs
@@ -0,0 +1,36 @@
+namespace Timeline
+{
+ /// <summary>
+ /// All error code constants.
+ /// </summary>
+ /// <remarks>
+ /// Scheme:
+ /// abbbccdd
+ /// </remarks>
+ 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 = 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 Content // cc = 02
+ {
+ public const int TooBig = 1000201;
+ public const int UnmatchedLength_Smaller = 10030202;
+ public const int UnmatchedLength_Bigger = 10030203;
+ }
+ }
+ }
+
+ }
+}