Commit d1c5aa04 authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

return 404 for train not found, 300 for multiple station choice

parent 5c3f8eae
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -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;
				}
+4 −2
Original line number Diff line number Diff line
@@ -676,6 +676,7 @@ sub train_details {
		$self->render(
			'landingpage',
			error  => "Keine Abfahrt von $train_no in $station gefunden",
			status => 404,
		);
		return;
	}
@@ -687,6 +688,7 @@ sub train_details {
		$self->render(
			'landingpage',
			error  => "Keine Abfahrt von $train_no in $station gefunden",
			status => 404,
		);
		return;
	}