RPA Page not found

Hello, what option in the RPA I can use in case if the Browser Automation URL is not found ? I Need the robot to: 

1. Detect the page shows error Not found and than keep refreshing until find is. 

Thank you. 

  Discussion posts and replies are publicly visible