def badrequest():
 context.status = '400 Bad Request'
 header('Content-Type', 'text/html')
 return output('bad request')

def badrequest ( ) : context . status = '400 Bad Request' header ( 'Content-Type' , 'text/html' ) return output ( 'bad request' )
return a 400 bad request error .