#NEWLINE# def not_allowed( message ) : #NEWLINE# #INDENT# response = jsonify ( { #NEWLINE# #INDENT# 'error' : 'method not allowed' , #NEWLINE# 'message' : message , #NEWLINE# #UNINDENT# } ) #NEWLINE# response . status_code = 405 #NEWLINE# return response