Error handling in bpmn process

Hello ,
In my process I have five consecutive rest api calls each api call depends on the response of the last one, i want to add a userTask that handle bpmn error it aims to rerun the failed call where the process was crashed and execute the next step
how can i implement this logic properly ?

Thanks in advance