Added ability to detect if a method is not allowed on a request.