Skip to content

Commit dd87fb8

Browse files
christianaccakhellang
authored andcommitted
Make ProblemDetailsOptionsSetup.IsProblemStatusCode public
1 parent 70ac2fb commit dd87fb8

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/ProblemDetails/ProblemDetailsOptionsSetup.cs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,13 @@ private static bool IsProblem(HttpContext context)
9696
return false;
9797
}
9898

99-
internal static bool IsProblemStatusCode(int? statusCode)
99+
/// <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)
100106
{
101107
return statusCode switch
102108
{

0 commit comments

Comments
 (0)