I want to set up my query so that it retries infinitely unless it receives a particular type of an error, such as 404 or 401. I couldn\'t find a way to do it with React Quer