Respond with 405 Method Not Allowed when appropriate.