catch and log HTTP errors without stopping