http: ensure the direct response status is greater than 200 (#19237)

Return 1xx HTTP status by the direct response isn't valid use-case, so refuse the 1xx status from direct response directly.

Risk Level: low
Testing: n/a
Docs Changes: n/a
Release Notes: add note for minor behavior change.

Fixes #19159

Signed-off-by: He Jie Xu <hejie.xu@intel.com>

Mirrored from https://github.com/envoyproxy/envoy @ 9050cfdc683856a7b0c7d43483e6f4152e91206d
pull/626/head
data-plane-api(Azure Pipelines) 3 years ago
parent bc055e4563
commit 8ed8130ebc
  1. 2
      envoy/config/route/v3/route_components.proto

@ -1573,7 +1573,7 @@ message DirectResponseAction {
"envoy.api.v2.route.DirectResponseAction";
// Specifies the HTTP response status to be returned.
uint32 status = 1 [(validate.rules).uint32 = {lt: 600 gte: 100}];
uint32 status = 1 [(validate.rules).uint32 = {lt: 600 gte: 200}];
// Specifies the content of the response body. If this setting is omitted,
// no body is included in the generated response.

Loading…
Cancel
Save