Hi David,
Simply redirect them to a random URL that does not exist on your domain, and they’ll get the 404 error.