Proper Error Handling in React Query