summaryrefslogtreecommitdiff
path: root/lib/DBInfoscreen/Controller/Stationboard.pm
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2020-10-25 17:02:34 +0100
committerDaniel Friesel <derf@finalrewind.org>2020-10-25 17:02:34 +0100
commitd1c5aa040038174bb7bd58b11d1f3004866e9fd0 (patch)
tree1d9db82ecd40661464f54882ea8b9f0ab59c66c8 /lib/DBInfoscreen/Controller/Stationboard.pm
parent5c3f8eae71b8a3eb4f7b5acf96858f861041f5ca (diff)
return 404 for train not found, 300 for multiple station choice
Diffstat (limited to 'lib/DBInfoscreen/Controller/Stationboard.pm')
-rw-r--r--lib/DBInfoscreen/Controller/Stationboard.pm6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/DBInfoscreen/Controller/Stationboard.pm b/lib/DBInfoscreen/Controller/Stationboard.pm
index 42f388e..c6f697f 100644
--- a/lib/DBInfoscreen/Controller/Stationboard.pm
+++ b/lib/DBInfoscreen/Controller/Stationboard.pm
@@ -675,7 +675,8 @@ sub train_details {
if ( not @{ $data->{results} } ) {
$self->render(
'landingpage',
- error => "Keine Abfahrt von $train_no in $station gefunden",
+ error => "Keine Abfahrt von $train_no in $station gefunden",
+ status => 404,
);
return;
}
@@ -686,7 +687,8 @@ sub train_details {
if ( not $result ) {
$self->render(
'landingpage',
- error => "Keine Abfahrt von $train_no in $station gefunden",
+ error => "Keine Abfahrt von $train_no in $station gefunden",
+ status => 404,
);
return;
}