use Apache::Constants qw(OK DECLINED AUTH_REQUIRED); my $status = some_method(); return $status if ($status != OK);