diff options
author | Daniel Friesel <derf@finalrewind.org> | 2023-02-12 18:11:54 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2023-02-12 18:11:54 +0100 |
commit | 6ac744630c2d10b285a6683af0504ccdfaee036e (patch) | |
tree | 99a8fa4aec1833369dcabebab830f6654d9637da /lib/DBInfoscreen | |
parent | 21db75aa35f08c86458481dacd06638c68f1318c (diff) |
do not return HTTP 500 on multiple choice
Diffstat (limited to 'lib/DBInfoscreen')
-rw-r--r-- | lib/DBInfoscreen/Controller/Stationboard.pm | 4 |
1 files changed, 2 insertions, 2 deletions
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 ); |