summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/DBInfoscreen/Controller/Stationboard.pm4
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
);