aboutsummaryrefslogtreecommitdiff
path: root/Timeline/Models/Http/Common.cs
diff options
context:
space:
mode:
author杨宇千 <crupest@outlook.com>2019-10-27 22:52:21 +0800
committer杨宇千 <crupest@outlook.com>2019-10-27 22:52:21 +0800
commit294807481dd42dc3c660e29630b36462e7bcfaaf (patch)
tree3fcce419f21587d8a872d76b2f654ed81ca842b6 /Timeline/Models/Http/Common.cs
parent4e5ba11efa3d2dd1e2d3a31ec5bbdc820219c63b (diff)
downloadtimeline-294807481dd42dc3c660e29630b36462e7bcfaaf.tar.gz
timeline-294807481dd42dc3c660e29630b36462e7bcfaaf.tar.bz2
timeline-294807481dd42dc3c660e29630b36462e7bcfaaf.zip
Add error code tests.
Diffstat (limited to 'Timeline/Models/Http/Common.cs')
-rw-r--r--Timeline/Models/Http/Common.cs17
1 files changed, 1 insertions, 16 deletions
diff --git a/Timeline/Models/Http/Common.cs b/Timeline/Models/Http/Common.cs
index 2c9ee9e7..2a88b3a3 100644
--- a/Timeline/Models/Http/Common.cs
+++ b/Timeline/Models/Http/Common.cs
@@ -27,24 +27,9 @@ namespace Timeline.Models.Http
internal static class HeaderErrorResponse
{
- internal static CommonResponse MissingContentType()
- {
- return new CommonResponse(ErrorCodes.Http.Common.Header.Missing_ContentType, MessageHeaderMissingContentType);
- }
-
- internal static CommonResponse MissingContentLength()
- {
- return new CommonResponse(ErrorCodes.Http.Common.Header.Missing_ContentLength, MessageHeaderMissingContentLength);
- }
-
- internal static CommonResponse ZeroContentLength()
- {
- return new CommonResponse(ErrorCodes.Http.Common.Header.Zero_ContentLength, MessageHeaderZeroContentLength);
- }
-
internal static CommonResponse BadIfNonMatch()
{
- return new CommonResponse(ErrorCodes.Http.Common.Header.BadFormat_IfNonMatch, MessageHeaderBadIfNonMatch);
+ return new CommonResponse(ErrorCodes.Http.Common.Header.IfNonMatch.BadFormat, MessageHeaderIfNonMatchBad);
}
}