def notfound():
 ctx.status = '404 Not Found'
 header('Content-Type', 'text/html')
 return output('not found')

def notfound ( ) : ctx . status = '404 Not Found' header ( 'Content-Type' , 'text/html' ) return output ( 'not found' )
returns a 404 not found error .