I would not have some of these together. First off, what are your source water parameters (GH and pH)?
While waiting for those, to the issues. Four Bolivian Rams will not work in this small a tank [40g breeder I assume is 36 X18 by 15 inches, being length/width/height]. A single BR, or a bonded pair, but nothing else with this species. I will explain bonded pair if asked.
Dwarf gourami...leave this out. First, gourami and cichlids are not good tankmates and second the DG is still risky with respect to the non-treatable iridovirus.
Glowlight Danio (Danio choprae) needs a larger group; six is often the suggested minimum, but this species is small and like most small shoaling species will always be in better health with larger groups. Males are also territorial, though not as aggressively so as say the Bolivian Ram, but larger groups like 8-9 help with this aspect too.
Pygmy cory...a few more would help if you select this species. One aspect here though is the Bolivian Ram...being a substrate feeder like cories, the BR may get annoyed with the pesky cories especially at feeding time. Larger species (like the panda) tend to shrug this off, but the more delicate pygmy might not and could be on the losing end of this stick. I had a BR in my 5-foot 115g tank, and he without question owned the entire space, and had no qualms about pushing cories aside when they were after "his" tablet or pellet.
I would leave the platies out since all the other species here are soft water and some even blackwater. The GH/pH will help decide this, but if the GH is on the soft side which it should be for the BR and rummys especially, platies will not last long.