def internalerror():
 ctx.status = '500 Internal Server Error'
 ctx.headers = [('Content-Type', 'text/html')]
 ctx.output = 'internal server error'

def internalerror ( ) : ctx . status = '500 Internal Server Error' ctx . headers = [ ( 'Content-Type' , 'text/html' ) ] ctx . output = 'internal server error'
returns a 500 internal server error .