catching an HTTPError