mirror of
https://github.com/kennethreitz-archive/chishop.git
synced 2026-06-21 16:00:58 +00:00
16 lines
311 B
Python
16 lines
311 B
Python
from django.http import HttpResponse
|
|
|
|
class HttpResponseNotImplemented(HttpResponse):
|
|
status_code = 501
|
|
|
|
|
|
class HttpResponseUnauthorized(HttpResponse):
|
|
status_code = 401
|
|
|
|
def __init__(self, realm):
|
|
HttpResponse.__init__(self)
|
|
self['WWW-Authenticate'] = 'Basic realm="%s"' % realm
|
|
|
|
|
|
|