Skip to content

Commit dddd416

Browse files
committed
improvement: code style
1 parent bb2ca9d commit dddd416

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ProjectTemplates/AspNetCore.WebApi/ReferenceProject/ReferenceProject/Middleware/ExceptionMiddleware.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ await context.Response.WriteAsync(
6868
JsonConvert.SerializeObject(
6969
new ErrorResponse(ex, Environment.IsDevelopment())));
7070

71-
if (context.Response.StatusCode == 500)
71+
if (context.Response.StatusCode == StatusCodes.Status500InternalServerError)
7272
{
7373
Logger.LogError(ex, "Unhandled exception occurred");
7474
}

0 commit comments

Comments
 (0)