Added exception case for HTTPError.