Refactoring: handle errors on client-side and use data from CatchBusinessException if available.