I agree with the others, you can't really do anything but be there for him. He'll need time to grieve and stuff.
But later you should take him out for ice cream or something. I know that would help me out anyways :P
But good luck, and I hope your boyfriend's feeling better soon. :)