rescue web api errors