Disable specific .NET Core Web API endpoints by applying a custom attribute that returns 404 without removing routes.