How to know HTTP status code in `onError` - TanStack