fixes invalid request method exception throwing