aboutsummaryrefslogtreecommitdiff
path: root/Timeline/Models/Http/ErrorResponse.cs
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2020-08-21 23:47:10 +0800
committerGitHub <noreply@github.com>2020-08-21 23:47:10 +0800
commitc28848a35b0f31a59f9d02641571495822ad0db8 (patch)
tree520b56d834185ba5f9f556558a181bb9f4059b29 /Timeline/Models/Http/ErrorResponse.cs
parent30e96fc5a59a8324ed861e7f7e856c44b4d329ff (diff)
parent3aa8e1cda4222fc3a9828888ba8fb51d2ba1d6c8 (diff)
downloadtimeline-c28848a35b0f31a59f9d02641571495822ad0db8.tar.gz
timeline-c28848a35b0f31a59f9d02641571495822ad0db8.tar.bz2
timeline-c28848a35b0f31a59f9d02641571495822ad0db8.zip
Merge pull request #149 from crupest/swagger
Swagger/OpenAPI
Diffstat (limited to 'Timeline/Models/Http/ErrorResponse.cs')
-rw-r--r--Timeline/Models/Http/ErrorResponse.cs50
1 files changed, 0 insertions, 50 deletions
diff --git a/Timeline/Models/Http/ErrorResponse.cs b/Timeline/Models/Http/ErrorResponse.cs
index 9a4d190a..7ba536f9 100644
--- a/Timeline/Models/Http/ErrorResponse.cs
+++ b/Timeline/Models/Http/ErrorResponse.cs
@@ -53,36 +53,6 @@ namespace Timeline.Models.Http
return new CommonResponse(ErrorCodes.Common.Header.IfNonMatch_BadFormat, string.Format(message, formatArgs));
}
- public static CommonResponse ContentType_Missing(params object?[] formatArgs)
- {
- return new CommonResponse(ErrorCodes.Common.Header.ContentType_Missing, string.Format(Common_Header_ContentType_Missing, formatArgs));
- }
-
- public static CommonResponse CustomMessage_ContentType_Missing(string message, params object?[] formatArgs)
- {
- return new CommonResponse(ErrorCodes.Common.Header.ContentType_Missing, string.Format(message, formatArgs));
- }
-
- public static CommonResponse ContentLength_Missing(params object?[] formatArgs)
- {
- return new CommonResponse(ErrorCodes.Common.Header.ContentLength_Missing, string.Format(Common_Header_ContentLength_Missing, formatArgs));
- }
-
- public static CommonResponse CustomMessage_ContentLength_Missing(string message, params object?[] formatArgs)
- {
- return new CommonResponse(ErrorCodes.Common.Header.ContentLength_Missing, string.Format(message, formatArgs));
- }
-
- public static CommonResponse ContentLength_Zero(params object?[] formatArgs)
- {
- return new CommonResponse(ErrorCodes.Common.Header.ContentLength_Zero, string.Format(Common_Header_ContentLength_Zero, formatArgs));
- }
-
- public static CommonResponse CustomMessage_ContentLength_Zero(string message, params object?[] formatArgs)
- {
- return new CommonResponse(ErrorCodes.Common.Header.ContentLength_Zero, string.Format(message, formatArgs));
- }
-
}
public static class Content
@@ -98,26 +68,6 @@ namespace Timeline.Models.Http
return new CommonResponse(ErrorCodes.Common.Content.TooBig, string.Format(message, formatArgs));
}
- public static CommonResponse UnmatchedLength_Smaller(params object?[] formatArgs)
- {
- return new CommonResponse(ErrorCodes.Common.Content.UnmatchedLength_Smaller, string.Format(Common_Content_UnmatchedLength_Smaller, formatArgs));
- }
-
- public static CommonResponse CustomMessage_UnmatchedLength_Smaller(string message, params object?[] formatArgs)
- {
- return new CommonResponse(ErrorCodes.Common.Content.UnmatchedLength_Smaller, string.Format(message, formatArgs));
- }
-
- public static CommonResponse UnmatchedLength_Bigger(params object?[] formatArgs)
- {
- return new CommonResponse(ErrorCodes.Common.Content.UnmatchedLength_Bigger, string.Format(Common_Content_UnmatchedLength_Bigger, formatArgs));
- }
-
- public static CommonResponse CustomMessage_UnmatchedLength_Bigger(string message, params object?[] formatArgs)
- {
- return new CommonResponse(ErrorCodes.Common.Content.UnmatchedLength_Bigger, string.Format(message, formatArgs));
- }
-
}
}