Two men are taken into custody after allegedly impersonating police officers in an armed home invasion.