diff --git a/src/Middleware/HealthChecks/src/HealthCheckOptions.cs b/src/Middleware/HealthChecks/src/HealthCheckOptions.cs index 16b81c2b96..d4e63cee97 100644 --- a/src/Middleware/HealthChecks/src/HealthCheckOptions.cs +++ b/src/Middleware/HealthChecks/src/HealthCheckOptions.cs @@ -28,7 +28,7 @@ namespace Microsoft.AspNetCore.Diagnostics.HealthChecks /// Gets a dictionary mapping the to an HTTP status code applied to the response. /// This property can be used to configure the status codes returned for each status. /// - public IDictionary ResultStatusCodes { get; } = new Dictionary() + public IDictionary ResultStatusCodes { get; set; } = new Dictionary() { { HealthStatus.Healthy, StatusCodes.Status200OK }, { HealthStatus.Degraded, StatusCodes.Status200OK },