Added stuff to handle HTTPError, I think