Fix situation when an HttpError Occurs.