How to stop 500 errors when UUID doesn't match

Thanks!