#NEWLINE# def render_method_not_allowed( self , request ) : #NEWLINE# #INDENT# env = request . environ #NEWLINE# if ( self [ 'SERVER_PROTOCOL' ] == 'HTTP/1.1' ) : #NEWLINE# #INDENT# request . status = '405 Method not allowed' #NEWLINE# request . headers [ 'Content-Type' ] = 'text/plain' #NEWLINE# return [ 'Method Not Allowed' ] #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# request . status = '400 Bad Request' #NEWLINE# request . headers [ 'Content-Type' ] = 'text/plain' #NEWLINE# return [ 'Bad Request' ]