How to use Custom Response Filter or Local Reply Modification Config to modify response based on upstream service response body or using command operator such as %RESPONSE_CODE_DETAILS% in Envoy? #33414
Labels
area/custom_response
question
Questions that are neither investigations, bugs, nor enhancements
stale
stalebot believes this issue/PR has not been touched recently
I want to modify the response return by envoy either based on upstream service response body or using command operator such as %RESPONSE_CODE_DETAILS% in envoy, but I am not able to find appropriate example for it.
In case of expired jwt, envoy returns "jwt is expired" response body from codec api, but I don't want to return the body as it is and want to modify before sending it to client. Example, 401 is very generic error code and expired token and invalid token both can have separate error message for better understanding.
The text was updated successfully, but these errors were encountered: