3 references to StatusCodeSelector
Microsoft.AspNetCore.Diagnostics (3)
ExceptionHandler\ExceptionHandlerMiddlewareImpl.cs (2)
169context.Response.StatusCode = _options.StatusCodeSelector?.Invoke(edi.SourceException) 225if (result != ExceptionHandledType.Unhandled || _options.StatusCodeSelector is not null || is404FromBadHttpRequestException || context.Response.StatusCode != StatusCodes.Status404NotFound || _options.AllowStatusCode404Response)
ExceptionHandler\ExceptionHandlerOptions.cs (1)
48/// If <see cref="StatusCodeSelector"/> is <c>null</c>, the default exception status code is 500. If the exception