1N5822 is a 3A 40V Schottky Rectifier
BY228 is a 'flyback damper diode'
If you can't order it online, then replace it with one of similar specs if the circuit can tolerate any differences.
I'm not keen enough with electronics to know the fine details of these diodes. I suggest look for datasheets.