gitweb: standarize HTTP status codes
commit074afaa0cf69e7d49bc00d969f57893c9ddea748
authorLea Wiemann <lewiemann@gmail.com>
Thu, 19 Jun 2008 20:03:21 +0000 (19 22:03 +0200)
committerJunio C Hamano <gitster@pobox.com>
Fri, 20 Jun 2008 00:43:58 +0000 (19 17:43 -0700)
tree86e3a164d578ebbcb49bca39fbced145b89abec7
parente449f105805ffa49ccf7cf080db897ecf65a1a0f
gitweb: standarize HTTP status codes

Many error status codes simply default to 403 Forbidden, which is not
correct in most cases.  This patch makes gitweb return semantically
correct status codes.

For convenience the die_error function now only takes the status code
without reason as first parameter (e.g. 404 instead of "404 Not
Found"), and it now defaults to 500 (Internal Server Error), even
though the default is not used anywhere.

Also documented status code conventions in die_error.

Signed-off-by: Lea Wiemann <LeWiemann@gmail.com>
Acked-by: Jakub Narebski <jnareb@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
gitweb/gitweb.perl