collect HTTP errors
Return 1 on errors