Make status more accurate for these errors

This commit is contained in:
swag 2023-06-04 13:46:21 -04:00
parent a332ea1584
commit bf20cd68f0

View File

@ -272,7 +272,7 @@ sub promote($self) {
$v->required('email')->size(6, 320);
if ($v->has_error) {
$self->stash(status => 404)
$self->stash(status => 400)
}
else {
my $email = $v->param('email');
@ -294,7 +294,7 @@ sub demote($self) {
$v->required('email')->size(6, 320);
if ($v->has_error) {
$self->stash(status => 404)
$self->stash(status => 400)
}
else {
my $email = $v->param('email');