RateLimiterOptions.RejectionStatusCode Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets the default status code to set on the response when a request is rejected. Defaults to Status503ServiceUnavailable.
public int RejectionStatusCode { get; set; }
member this.RejectionStatusCode : int with get, set
Public Property RejectionStatusCode As Integer
Property Value
Remarks
This status code will be set before OnRejected is called, so any status code set by OnRejected will "win" over this default.