Skip to content

Commit

Permalink
DocFix: Replace http_status with status_code
Browse files Browse the repository at this point in the history
  • Loading branch information
Manpreet Singh committed May 2, 2024
1 parent a400281 commit 6c0b8c5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/content/envoy-primer.md
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ When Envoy receives a policy decision, it expects a JSON object with the followi
* `headers` (optional): an object mapping a string header name to a string header value (e.g. key "x-ext-auth-allow" has value "yes")
* `response_headers_to_add` (optional): an object mapping a string header name to a string header value
* `request_headers_to_remove` (optional): is an array of string header names
* `http_status` (optional): a number representing the HTTP status code
* `status_code` (optional): a number representing the HTTP status code
* `body` (optional): the response body
* `dynamic_metadata` (optional): an object representing dynamic metadata to be consumed by the next Envoy filter.

Expand All @@ -220,7 +220,7 @@ result["headers"] := headers
result["response_headers_to_add"] := response_headers_to_add
result["request_headers_to_remove"] := request_headers_to_remove
result["body"] := body
result["http_status"] := status_code
result["status_code"] := status_code
result["dynamic_metadata"] := dynamic_metadata
```

Expand Down

0 comments on commit 6c0b8c5

Please sign in to comment.