From ba4f2c1923207a12d817f765d60811e538fd86c4 Mon Sep 17 00:00:00 2001 From: Birte Kristina Friesel Date: Wed, 8 Jan 2025 18:50:38 +0100 Subject: 503 backend errors (hello, DB HAFAS) are Bad Gateway as well --- lib/Travelynx/Controller/Traveling.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Travelynx/Controller/Traveling.pm b/lib/Travelynx/Controller/Traveling.pm index f61d83d..54eb12b 100755 --- a/lib/Travelynx/Controller/Traveling.pm +++ b/lib/Travelynx/Controller/Traveling.pm @@ -1131,7 +1131,7 @@ sub station { } )->wait; } - elsif ( $err =~ m{svcRes|connection close} ) { + elsif ( $err =~ m{svcRes|connection close|Service Temporarily Unavailable} ) { $self->render( 'bad_gateway', message => $err, -- cgit v1.2.3