function getErrorKeyByCode(code: number): string {
	switch (code) {
		case 2:
			return 'TOO_SHORT';
		case 3:
			return 'TOO_LONG';
		case 4:
			return 'INVALID_BUT_POSSIBLE';
		case 1:
			return 'INVALID_COUNTRY_CODE';
		case 5:
			return 'INVALID_LENGTH';
		case 0:
			return 'NOT_A_NUMBER';
		default:
			return 'UNKNOWN';
	}
}

export default getErrorKeyByCode;
