Unverified Commit 6ac74463 authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

do not return HTTP 500 on multiple choice

parent 21db75aa
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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
			);