hts error handle