X-Git-Url: https://git.openstreetmap.org./osqa.git/blobdiff_plain/25d2724e64a7828113860d6f7232815a34133ec1..9a075e7d95c3b16c05011410de59196caaa86e66:/forum/http_responses.py diff --git a/forum/http_responses.py b/forum/http_responses.py index 7fae3b6..2ff4866 100644 --- a/forum/http_responses.py +++ b/forum/http_responses.py @@ -24,4 +24,18 @@ class HttpResponseUnauthorized(HttpResponse): super(HttpResponseUnauthorized, self).__init__( content=render_to_string('401.html', context_instance=RequestContext(request)), status=401 - ) \ No newline at end of file + ) + +class HttpResponseNotFound(HttpResponse): + def __init__(self, request): + super(HttpResponseNotFound, self).__init__( + content=render_to_string('404.html', context_instance=RequestContext(request)), + status=404 + ) + +class HttpResponseIntServerError(HttpResponse): + def __init__(self, request): + super(HttpResponseIntServerError, self).__init__( + content=render_to_string('500.html', context_instance=RequestContext(request)), + status=500 + ) \ No newline at end of file