customize retry errors and retry times