Recovering from exceptions thrown on the HTTP requests