From: Frank Lichtenheld Date: Thu, 12 Apr 2007 22:28:58 +0000 (+0200) Subject: dispatcher: Fix HTTP error code for "format not supported" X-Git-Url: https://git.deb.at/?a=commitdiff_plain;h=08faf198729da5a356e83e4e435af30828ac9616;p=deb%2Fpackages.git dispatcher: Fix HTTP error code for "format not supported" 405 is actually the error for not supported HTTP request (i.e. GET, POST, etc). 406 is the correct code for content formats. --- diff --git a/cgi-bin/dispatcher.pl b/cgi-bin/dispatcher.pl index 754e9b0..1f876de 100755 --- a/cgi-bin/dispatcher.pl +++ b/cgi-bin/dispatcher.pl @@ -261,7 +261,7 @@ my $template = new Packages::Template( $TEMPLATEDIR, $opts{format}, { lang => $o unless (-e "$TEMPLATEDIR/$opts{format}/${what_to_do}.tmpl") { fatal_error( "requested format not available for this document", - "405 requested format not available"); + "406 requested format not available"); } my (%html_header, %page_content);