In California, this would've gotten the homeowner arrested. Best weapon to have handy during a home invasion is a shotgun. Awesome lethality and less chance of poorly-aimed rounds going through your neighbors' homes.
Agreed a shottie is a good choice but I think an overlooked addition is something like a Marlin 1894 lever action chambered in either .357 or 44 mag. Relatively short barrel 18.5 to 20 inches with 9-10 shot capacity. They are very quick handling, rapid firing and accurate. If the perps can be engaged in a funnel like a hallway or a doorway then its adios.