add journey: return HTTP 400 on input error
This commit is contained in:
parent
c969019bb3
commit
c290077471
1 changed files with 3 additions and 0 deletions
|
@ -2112,6 +2112,7 @@ sub add_journey_form {
|
||||||
$self->render(
|
$self->render(
|
||||||
'add_journey',
|
'add_journey',
|
||||||
with_autocomplete => 1,
|
with_autocomplete => 1,
|
||||||
|
status => 400,
|
||||||
error =>
|
error =>
|
||||||
'Zug muss als „Typ Nummer“ oder „Typ Linie Nummer“ eingegeben werden.'
|
'Zug muss als „Typ Nummer“ oder „Typ Linie Nummer“ eingegeben werden.'
|
||||||
);
|
);
|
||||||
|
@ -2126,6 +2127,7 @@ sub add_journey_form {
|
||||||
$self->render(
|
$self->render(
|
||||||
'add_journey',
|
'add_journey',
|
||||||
with_autocomplete => 1,
|
with_autocomplete => 1,
|
||||||
|
status => 400,
|
||||||
error => "${key}: Ungültiges Datums-/Zeitformat"
|
error => "${key}: Ungültiges Datums-/Zeitformat"
|
||||||
);
|
);
|
||||||
return;
|
return;
|
||||||
|
@ -2167,6 +2169,7 @@ sub add_journey_form {
|
||||||
$self->render(
|
$self->render(
|
||||||
'add_journey',
|
'add_journey',
|
||||||
with_autocomplete => 1,
|
with_autocomplete => 1,
|
||||||
|
status => 400,
|
||||||
error => $error,
|
error => $error,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue