File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ def page_not_found(
5050 if show_html_error_page (request ):
5151 return defaults .page_not_found (request , exception , template_name )
5252
53- # Serve a simpler, cheaper 404 page if we don't need to
53+ # Serve a simpler, cheaper 404 page if possible
5454 return HttpResponseNotFound (
5555 "Page not found" , content_type = "text/plain; charset=utf-8"
5656 )
@@ -62,7 +62,7 @@ def server_error(request, template_name="patterns/pages/errors/500.html"):
6262 if show_html_error_page (request ):
6363 return defaults .server_error (request , template_name )
6464
65- # Serve a simpler, cheaper 500 page if we don't need to
65+ # Serve a simpler, cheaper 500 page if possible
6666 return HttpResponseServerError (
6767 "Server error" , content_type = "text/plain; charset=utf-8"
6868 )
You can’t perform that action at this time.
0 commit comments