I am working on a Chess game that I built in Spring and then connected to React. I have custom exceptions in Spring that work perfectly in the backend but I can\'t figure out ho