summaryrefslogtreecommitdiff
path: root/lib/DBInfoscreen/Controller
diff options
context:
space:
mode:
Diffstat (limited to 'lib/DBInfoscreen/Controller')
-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;
}