Share via


RouteHandlerOptions.ThrowOnBadRequest Property

Definition

Controls whether endpoints should throw a BadHttpRequestException in addition to writing a Debug log when handling invalid requests.

public bool ThrowOnBadRequest { get; set; }
member this.ThrowOnBadRequest : bool with get, set
Public Property ThrowOnBadRequest As Boolean

Property Value

Remarks

Defaults to IsDevelopment(IHostEnvironment).

Applies to