-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
feat: As a user, I want to let api-breaker plugin return default response body #6923
Comments
Sound good, which value do you think is reasonable for the default response body? |
Different api may return different default value. Users should specify the default value with admin api, and the plugin api could add a new param like unhealthy.http_response_body |
I think a field like |
I could make a pr for this, if you don't mind. @tokers |
Sure, assigned to you. |
Description
refer to the document api-breaker
when upstream is in the unhealthy state, the api-breaker returns unhealthy.http_statuses only, without a response body.
In order to be more compatible to the client, return a default response body is useful.
The text was updated successfully, but these errors were encountered: