We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
ProblemDetailsOptionsSetup.IsProblemStatusCode
1 parent 70ac2fb commit dd87fb8Copy full SHA for dd87fb8
src/ProblemDetails/ProblemDetailsOptionsSetup.cs
@@ -96,7 +96,13 @@ private static bool IsProblem(HttpContext context)
96
return false;
97
}
98
99
- internal static bool IsProblemStatusCode(int? statusCode)
+ /// <summary>
100
+ /// Default implementation for determining if a http response status code should be consider a problem or not
101
+ /// </summary>
102
+ /// <remarks>
103
+ /// A status code between 400 and 600 is considered a problem
104
+ /// </remarks>
105
+ public static bool IsProblemStatusCode(int? statusCode)
106
{
107
return statusCode switch
108
0 commit comments