Forty grams falls in the awkward gap between two standard measures for most dry ingredients. It is a weight where a scale genuinely beats a cup, because the honest answer is a third of a cup plus a little.
Across the full chart above, this same weight fills 0.48 cups of cocoa powder but only 0.12 cups of honey. Cocoa is the lightest ingredient here and honey the heaviest, and that spread is the whole reason the ingredient has to be named.
Keep the original 40 gram weight whenever the recipe depends on an exact ratio between flour and liquid.