X-Git-Url: https://git.openstreetmap.org./osqa.git/blobdiff_plain/13bee2f2e6aea2d936909861f3ab60bb09821a60..c20ffa09925ec21f3631e6f14f078f2f8b05be70:/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