summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/DBInfoscreen.pm6
-rw-r--r--lib/DBInfoscreen/Controller/Stationboard.pm6
2 files changed, 8 insertions, 4 deletions
diff --git a/lib/DBInfoscreen.pm b/lib/DBInfoscreen.pm
index 3acb969..0834a97 100644
--- a/lib/DBInfoscreen.pm
+++ b/lib/DBInfoscreen.pm
@@ -144,7 +144,8 @@ sub startup {
$self->render(
'landingpage',
stationlist => \@candidates,
- hide_opts => 0
+ hide_opts => 0,
+ status => 300,
);
return;
}
@@ -158,7 +159,8 @@ sub startup {
$self->render(
'landingpage',
stationlist => \@candidates,
- hide_opts => 0
+ hide_opts => 0,
+ status => 300,
);
return;
}
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;
}