trying to make service more resilient, able to handle http errors