Differentiate HTTP errors like 404 from connection errors.