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 6ed5990 commit 158af6dCopy full SHA for 158af6d
1 file changed
src/JsonApiDotNetCore/Serialization/Response/JsonApiWriter.cs
@@ -118,7 +118,7 @@ private static bool CanWriteBody(HttpStatusCode statusCode)
118
119
private static bool IsSuccessStatusCode(HttpStatusCode statusCode)
120
{
121
- return new HttpResponseMessage(statusCode).IsSuccessStatusCode;
+ return (int)statusCode is >= 200 and <= 299;
122
}
123
124
private string RenderModel(object? model)
0 commit comments