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.
1 parent fcc45df commit 0fdfbcaCopy full SHA for 0fdfbca
src/Initium/Extensions/HttpStatusCodeExtensions.cs
@@ -0,0 +1,9 @@
1
+using System.Net;
2
+
3
+namespace Initium.Extensions;
4
5
+public static class HttpStatusCodeExtensions
6
+{
7
+ public static bool IsSuccess(this HttpStatusCode statusCode) =>
8
+ statusCode is >= HttpStatusCode.OK and < HttpStatusCode.MultipleChoices;
9
+}
0 commit comments