diff options
author | 杨宇千 <crupest@outlook.com> | 2019-08-20 23:57:47 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-20 23:57:47 +0800 |
commit | fd95f9abc017575b13a31dd16ac72ef663e984d6 (patch) | |
tree | 3d20f696dd097b86eeba497baf8dc1baf966626c /Timeline/Models/Http/Common.cs | |
parent | 7814ed7059f74cfecfa8a0c9aa4f9946d1015364 (diff) | |
parent | 55f3870cc5301477a7462748f0232f04040a8d2f (diff) | |
download | timeline-fd95f9abc017575b13a31dd16ac72ef663e984d6.tar.gz timeline-fd95f9abc017575b13a31dd16ac72ef663e984d6.tar.bz2 timeline-fd95f9abc017575b13a31dd16ac72ef663e984d6.zip |
Merge pull request #47 from crupest/avatar-enhance
Use etag for avatar cache.
Diffstat (limited to 'Timeline/Models/Http/Common.cs')
-rw-r--r-- | Timeline/Models/Http/Common.cs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Timeline/Models/Http/Common.cs b/Timeline/Models/Http/Common.cs index 50f6836e..a72f187c 100644 --- a/Timeline/Models/Http/Common.cs +++ b/Timeline/Models/Http/Common.cs @@ -13,6 +13,7 @@ namespace Timeline.Models.Http public const int Header_Missing_ContentType = -111;
public const int Header_Missing_ContentLength = -112;
public const int Header_Zero_ContentLength = -113;
+ public const int Header_BadFormat_IfNonMatch = -114;
}
public static CommonResponse InvalidModel(string message)
@@ -35,6 +36,11 @@ namespace Timeline.Models.Http return new CommonResponse(ErrorCodes.Header_Zero_ContentLength, "Header Content-Length must not be 0.");
}
+ public static CommonResponse BadIfNonMatch()
+ {
+ return new CommonResponse(ErrorCodes.Header_BadFormat_IfNonMatch, "Header If-Non-Match is of bad format.");
+ }
+
public CommonResponse()
{
|