Skip to content

Custom page for 500, 501, 502, 503, ... HTTP status #3763

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
sathieu opened this issue Apr 23, 2025 · 0 comments
Open

Custom page for 500, 501, 502, 503, ... HTTP status #3763

sathieu opened this issue Apr 23, 2025 · 0 comments
Labels
kind/feature Categorizes issue or PR as related to a new feature.

Comments

@sathieu
Copy link

sathieu commented Apr 23, 2025

What would you like to be added:

When the backend returns Server Error (500) we want to change the response page to hide any security sensitive information.

Similarily for Bad Gateway (502), we want to change the error page to something less technical (and different between implementations): a maintenance page.

Same for 503 (Service Unavailable), and maybe others (404 Not Found, ...).

I don't know how to do this. Maybe responseRules that can match on response status and filter with a ResponseBodyModifier.

envoy is able to do this with custom_response_filter.

Why this is needed:

We want to hide technical details to users.

@sathieu sathieu added the kind/feature Categorizes issue or PR as related to a new feature. label Apr 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature Categorizes issue or PR as related to a new feature.
Projects
None yet
Development

No branches or pull requests

1 participant