added catching HTTPErrors