There are other merchants, stepping it down from 50 to 40mm isn't recommended, especially on a shower waste where the hair, grease and skin etc. has had chance to cool down and congeal by the time it gets to that point in the waste run.
It's not to regs but you might get away with it, are you a...