Handling error reposnses from server functions - TanStack