summaryrefslogtreecommitdiff
path: root/paste/webkit/FakeWebware/WebKit/HTTPExceptions.py
blob: e64978b6944abae303eeb4fe8a83143274dced26 (plain)
1
2
3
4
5
6
7
8
from paste.httpexceptions import *

class HTTPAuthenticationRequired(HTTPUnauthorized):

    def __init__(self, realm=None, message=None, headers=None):
        headers = headers or {}
        headers['WWW-Authenticate'] = 'Basic realm=%s' % realm
        HTTPUnathorized.__init__(self, message, headers)