Skip to content
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

Return aggregated error code if max attempts limit is exceeded #587

Open
astsiapanay opened this issue Nov 26, 2024 · 0 comments
Open

Return aggregated error code if max attempts limit is exceeded #587

astsiapanay opened this issue Nov 26, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@astsiapanay
Copy link
Collaborator

if (upstreams.filter(upstream -> upstream.statusCode == 429).count() == upstreams.size()) {
      response.headers['retry-after'] = upstreams.filter(upstream -> upstream.retryAfterSource == UPSTREAM)
        .min(upstream -> upstream.retryAfter).retryAfter;
      return 503
   } else
      return 502
@astsiapanay astsiapanay self-assigned this Nov 26, 2024
@astsiapanay astsiapanay added the enhancement New feature or request label Nov 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: No status
Development

No branches or pull requests

1 participant