Allow the response behavior of 405 errors to be changed