Added a catch to the HTTPErrors.