Now throws an exception if there is an HTTP error