pages: test the request method and return Method Not Allowed when appropriate