From 6ac744630c2d10b285a6683af0504ccdfaee036e Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sun, 12 Feb 2023 18:11:54 +0100 Subject: do not return HTTP 500 on multiple choice --- lib/DBInfoscreen/Controller/Stationboard.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/DBInfoscreen/Controller/Stationboard.pm') diff --git a/lib/DBInfoscreen/Controller/Stationboard.pm b/lib/DBInfoscreen/Controller/Stationboard.pm index 317ed74..fbb8e4f 100644 --- a/lib/DBInfoscreen/Controller/Stationboard.pm +++ b/lib/DBInfoscreen/Controller/Stationboard.pm @@ -500,7 +500,7 @@ sub handle_request { $station, { errstr => $err, - status => 500 + status => ( $err =~ m{station name$} ? 300 : 500 ), }, $api_version ); @@ -510,7 +510,7 @@ sub handle_request { $station, { errstr => $err, - status => 500 + status => ( $err =~ m{station name$} ? 300 : 500 ), }, $hafas ); -- cgit v1.2.3