Share via


RateLimiterOptions.RejectionStatusCode Property

Definition

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.

Applies to