Setting error from the server in useMutation - TanStack