If you can find a brand name(Trek, Cannondale, Giant, Fugi, Surley), used road bike that fits you, $400 should buy a good one. Remember, FIT is first.
After that, you'll be dealing with lot of components: wheels, gear, derailleurs, shifters, tires, seat, brakes, etc. Replacing these can add up...