From 08faf198729da5a356e83e4e435af30828ac9616 Mon Sep 17 00:00:00 2001 From: Frank Lichtenheld Date: Fri, 13 Apr 2007 00:28:58 +0200 Subject: [PATCH] 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. --- cgi-bin/dispatcher.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.39.2