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

Refine which http status codes to trip on #16

Merged
merged 5 commits into from
Nov 7, 2018
Merged

Conversation

trygve-lie
Copy link
Owner

@trygve-lie trygve-lie commented Nov 4, 2018

Refines the breaker to trip only on the following http status codes:

  • 408
  • 413
  • 429
  • 500
  • 502
  • 503
  • 504

This also ads a onResponse feature where its possible to append a function which can be used for custom tailoring what the breaker should trip on during a response. By providing such a custom function it will override the built in tripping on the above status codes.

The onResponse feature can be set globaly for all hosts or pr single host.

@trygve-lie trygve-lie changed the title Refine http status codes Refine which http status codes to trip on Nov 7, 2018
@trygve-lie trygve-lie merged commit 54f4d8a into master Nov 7, 2018
@trygve-lie trygve-lie deleted the refined-status-codes branch November 7, 2018 10:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant