From 96fe96b87abb9cdefd83cd26732bb251f90b4aa3 Mon Sep 17 00:00:00 2001 From: crupest Date: Fri, 21 Aug 2020 22:52:20 +0800 Subject: ... --- Timeline/Models/Http/ErrorResponse.cs | 50 ----------------------------------- 1 file changed, 50 deletions(-) (limited to 'Timeline/Models') 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)); - } - } } -- cgit v1.2.3