Skip to content

Conversation

@lbenguigui
Copy link
Contributor

@lbenguigui lbenguigui commented Jan 26, 2026

What does this PR do?

This PR adds the ability to trigger failover based on HTTP response status codes from the main handler, in addition to the existing health check mechanism.
When configured with an errors block, the failover service will intercept responses matching specified status codes (e.g., 500-504) and automatically route the request to the fallback handler

More

  • Added/updated tests
  • Added/updated documentation

Co-authored-by: juliens julien.salleyron@gmail.com

@mmatur mmatur force-pushed the add_errors_failover branch from c248c3a to 97bfcdd Compare January 27, 2026 15:16
@rtribotte rtribotte changed the title feat: adds error configuration to failover Failover according to response status code Jan 28, 2026
@mmatur mmatur added this to the next milestone Jan 29, 2026
@lbenguigui lbenguigui force-pushed the add_errors_failover branch 2 times, most recently from 672b87a to 7b09031 Compare January 30, 2026 14:16
lbenguigui and others added 2 commits February 4, 2026 10:54
Co-authored-by: Romain <rtribotte@users.noreply.github.com>
@nmengin nmengin requested a review from rtribotte February 5, 2026 10:55
rtribotte and others added 3 commits February 5, 2026 17:56
Signed-off-by: romain <rtribotte@users.noreply.github.com>
Copy link
Member

@rtribotte rtribotte left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Member

@kevinpollet kevinpollet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@traefiker traefiker merged commit 34ae66b into traefik:master Feb 9, 2026
52 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants