improve http provider errors