Mercurial > public > mercurial-scm > hg-stable
diff mercurial/hgweb/common.py @ 7029:b84d27386285
hgweb: Respond with HTTP 403 for disabled archive types instead of 404
This makes it easier for clients/users to distinct between supported
but disabled and unsupported archive types.
author | Rocco Rutte <pdmef@gmx.net> |
---|---|
date | Fri, 05 Sep 2008 17:28:37 +0200 |
parents | 57b954d8d003 |
children | 125c8fedcbe0 |
line wrap: on
line diff
--- a/mercurial/hgweb/common.py Fri Sep 12 13:28:05 2008 +0200 +++ b/mercurial/hgweb/common.py Fri Sep 05 17:28:37 2008 +0200 @@ -11,6 +11,7 @@ HTTP_OK = 200 HTTP_BAD_REQUEST = 400 HTTP_UNAUTHORIZED = 401 +HTTP_FORBIDDEN = 403 HTTP_NOT_FOUND = 404 HTTP_METHOD_NOT_ALLOWED = 405 HTTP_SERVER_ERROR = 500