Understanding a diode's power rating
Power = Voltage * Current
I'm assuming that you have a continuous forward current of 400 mA.
Note that these diodes are very small so they heat up very quickly. So even if the current is 400 mA for a short time, that would need to be really short like less than 1 second if you wait a long time (many minutes) before doing that again.
Now look up the forward voltage for 400 mA: around 1.2 V (depends on temperature, I just picked a value, that's good enough for OK/not OK).
So Power dissipation = 0.4 A * 1.2 V = 0.48 W = 480 mW which is much more than 150 mW.
So no, this is not OK. You are exceeding the power limit of these diodes.
These diodes are designed for a lower continuous current than what you need.
Maybe a Schottky diode is an option as these have a lower forward voltage drop and therefore lower power dissipation.