405 is actually the error for not supported HTTP request (i.e.
GET, POST, etc). 406 is the correct code for content formats.
unless (-e "$TEMPLATEDIR/$opts{format}/${what_to_do}.tmpl") {
fatal_error( "requested format not available for this document",
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);
}
my (%html_header, %page_content);