handle http errors on report