Mercurial > public > mercurial-scm > hg-stable
diff mercurial/hgweb/common.py @ 6926:57b954d8d003
hgweb: raise ErrorResponses to communicate protocol errors
author | Dirkjan Ochtman <dirkjan@ochtman.nl> |
---|---|
date | Tue, 22 Jul 2008 18:23:20 +0200 |
parents | e8332c8108ff |
children | b84d27386285 |
line wrap: on
line diff
--- a/mercurial/hgweb/common.py Fri Aug 15 13:25:57 2008 +0200 +++ b/mercurial/hgweb/common.py Tue Jul 22 18:23:20 2008 +0200 @@ -10,7 +10,9 @@ HTTP_OK = 200 HTTP_BAD_REQUEST = 400 +HTTP_UNAUTHORIZED = 401 HTTP_NOT_FOUND = 404 +HTTP_METHOD_NOT_ALLOWED = 405 HTTP_SERVER_ERROR = 500 class ErrorResponse(Exception):