]> git.openstreetmap.org Git - osqa.git/blobdiff - forum/http_responses.py
Merge pull request #2 from udacity/update_django
[osqa.git] / forum / http_responses.py
index 7fae3b69f3bd63b9d60fc93f91b733633e8af2a8..2ff4866fdb89a89e9efea173bb47e1f3e468ca9c 100644 (file)
@@ -24,4 +24,18 @@ class HttpResponseUnauthorized(HttpResponse):
             super(HttpResponseUnauthorized, self).__init__(
                 content=render_to_string('401.html', context_instance=RequestContext(request)),
                 status=401
             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