| File: StatusCodePage\StatusCodePagesFeature.cs | Web Access |
| Project: src\aspnetcore\src\Middleware\Diagnostics\src\Microsoft.AspNetCore.Diagnostics.csproj (Microsoft.AspNetCore.Diagnostics) |
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Diagnostics; /// <summary> /// Represents the Status code pages feature. /// </summary> public class StatusCodePagesFeature : IStatusCodePagesFeature { /// <summary> /// Enables or disables status code pages. The default value is true. /// Set this to false to prevent the <see cref="StatusCodePagesMiddleware"/> /// from creating a response body while handling the error status code. /// </summary> public bool Enabled { get; set; } = true; }