ratelimit support status_on_error (#30445)

Commit Message: ratelimit support status_on_error
Additional Description: N/A
Risk Level: low
Testing: ut
Docs Changes: N/A
Release Notes: N/A

Signed-off-by: wangkai19 <wangkai19@corp.netease.com>

Mirrored from https://github.com/envoyproxy/envoy @ 1c1ffdb2378a154ab5a013a2efe6f037d62659d6
main
update-envoy[bot] 1 year ago
parent f7462c6de1
commit dab84a62e2
  1. 6
      envoy/extensions/filters/http/ratelimit/v3/rate_limit.proto

@ -25,7 +25,7 @@ option (udpa.annotations.file_status).package_version_status = ACTIVE;
// Rate limit :ref:`configuration overview <config_http_filters_rate_limit>`.
// [#extension: envoy.filters.http.ratelimit]
// [#next-free-field: 12]
// [#next-free-field: 13]
message RateLimit {
option (udpa.annotations.versioning).previous_message_type =
"envoy.config.filter.http.rate_limit.v2.RateLimit";
@ -126,6 +126,10 @@ message RateLimit {
// have been rate limited.
repeated config.core.v3.HeaderValueOption response_headers_to_add = 11
[(validate.rules).repeated = {max_items: 10}];
// Sets the HTTP status that is returned to the client when the ratelimit server returns an error
// or cannot be reached. The default status is 500.
type.v3.HttpStatus status_on_error = 12;
}
// Global rate limiting :ref:`architecture overview <arch_overview_global_rate_limit>`.

Loading…
Cancel
Save