allow specifying which error codes should cause auto-retrying