#NEWLINE# @ error ( 500 ) #NEWLINE# def my_great_500( request , exception ) : #NEWLINE# #INDENT# html_output = ( '\n    <html>\n        <head>\n            <title>Application Error! OH NOES!</title>\n        </head>\n        \n        <body>\n            <h1>OH NOES!</h1>\n            \n            <p>Yep, you broke it.</p>\n            \n            <p>Exception: %s</p>\n        </body>\n    </html>\n    ' % exception ) #NEWLINE# response = Response ( response , status = 500 ) #NEWLINE# return response . send ( request . _start_response )