]> git.donarmstrong.com Git - debbugs.git/blobdiff - cgi/pkgindex.cgi
quitcgi: Return 400/500 status codes
[debbugs.git] / cgi / pkgindex.cgi
index 793cda252a25627fd6fa5205c27958dd59e2ac91..a43428a6cd7f6362433a1c3ace25a6b2b04b3b07 100755 (executable)
@@ -43,14 +43,14 @@ elsif (defined $param{prev}) {
 
 my $indexon = $param{indexon};
 if ($param{indexon} !~ m/^(pkg|src|maint|submitter|tag)$/) {
-    quitcgi("You have to choose something to index on");
+    quitcgi("You have to choose something to index on", '400 Bad Request');
 }
 
 my $repeatmerged = $param{repeatmerged} eq 'yes';
 my $archive = $param{archive} eq "yes";
 my $sortby = $param{sortby};
 if ($sortby !~ m/^(alpha|count)$/) {
-    quitcgi("Don't know how to sort like that");
+    quitcgi("Don't know how to sort like that", '400 Bad Request');
 }
 
 my $Archived = $archive ? " Archived" : "";