Return 410 Gone (rather than 500) if an output is no longer available
This commit is contained in:
@ -15,7 +15,7 @@ use feature qw/switch/;
|
||||
our @ISA = qw(Exporter);
|
||||
our @EXPORT = qw(
|
||||
getBuild getPreviousBuild getNextBuild getPreviousSuccessfulBuild
|
||||
error notFound accessDenied
|
||||
error notFound gone accessDenied
|
||||
forceLogin requireUser requireProjectOwner requireAdmin requirePost isAdmin isProjectOwner
|
||||
trim
|
||||
getLatestFinishedEval
|
||||
@ -103,6 +103,12 @@ sub notFound {
|
||||
}
|
||||
|
||||
|
||||
sub gone {
|
||||
my ($c, $msg) = @_;
|
||||
error($c, $msg, 410);
|
||||
}
|
||||
|
||||
|
||||
sub accessDenied {
|
||||
my ($c, $msg) = @_;
|
||||
error($c, $msg, 403);
|
||||
|
Reference in New Issue
Block a user