some error cases when api requests fail