diff options
author | Derf Null <derf@finalrewind.org> | 2023-06-04 19:37:16 +0200 |
---|---|---|
committer | Derf Null <derf@finalrewind.org> | 2023-06-04 19:37:16 +0200 |
commit | ab04bc19b9694d906125345e516c89fd0c4626f1 (patch) | |
tree | c65c4301504e28383c89b37d7357fad86782d1ca /lib/Travelynx/Controller/Profile.pm | |
parent | c1635e24fb78d981a790463cfe35ba552bcaac04 (diff) |
consistently return HTTP 404 on not found errors
Diffstat (limited to 'lib/Travelynx/Controller/Profile.pm')
-rwxr-xr-x | lib/Travelynx/Controller/Profile.pm | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/Travelynx/Controller/Profile.pm b/lib/Travelynx/Controller/Profile.pm index b11dd71..1e29748 100755 --- a/lib/Travelynx/Controller/Profile.pm +++ b/lib/Travelynx/Controller/Profile.pm @@ -66,7 +66,7 @@ sub profile { my $user = $self->users->get_privacy_by( name => $name ); if ( not $user ) { - $self->render('not_found'); + $self->render( 'not_found', status => 404 ); return; } @@ -437,11 +437,11 @@ sub user_status { "/p/${name}/j/$journey->{id}?token=${token}-${ts}"); } else { - $self->render('not_found'); + $self->render( 'not_found', status => 404 ); } return; } - $self->render('not_found'); + $self->render( 'not_found', status => 404 ); return; } @@ -550,7 +550,7 @@ sub status_card { delete $self->stash->{layout}; if ( not $user ) { - $self->render('not_found'); + $self->render( 'not_found', status => 404 ); return; } |