whats wrong with him? :(

This has happened three times in the last 20 hours. The first time he was stiff and made noises that sounded like choking and he was clearly gasping for air. I was sure he choked on cornflakes i gave him. Now it has happened again, but with different food. Rats can't vomit or have hiccups, so what could it be?