400 watts is gonna be a ton of light in a 40 breeder. But also you will kick yourself for not getting metal halides.
I have a 250w DE on a 26 Bowfront, but it is 21 inches deep. If I were you I would look at a 150w DE or maybe a 175w SE metal halide set-up. Retro kits and be found for around...