#NEWLINE# def render_error( request , status_code , template_name = 'ui/error.html' ) : #NEWLINE# #INDENT# 'Generic base for rendering error pages.' #NEWLINE# message = status_text . get ( status_code ) #NEWLINE# context = { #NEWLINE# #INDENT# 'code' : status_code , #NEWLINE# 'message' : message , #NEWLINE# #UNINDENT# } #NEWLINE# return render ( request , template_name , context , status = status_code )