Catch httplib.HTTPExceptions.