Obviously, I'm no expert, but I think he's probably fine.
He probably just ate something that didn't agree with him. Check with your parents and see how much pasta they gave him--that could be the culprit--the sauce.
All 4 of my dogs threw up the other day after eating Frosty Paws--apparently those don't agree with them. They were all fine. When Abbey is sick she goes out and grazes a lot more than normal--the grass helps her throw up, because grass is not digestible--that's what my vet told me about her throwing up the grass--their system cannot digest it, so they throw it up. Gross, but some dogs just like to eat it.

I hope Ozzy is feeling better and back to normal soon. Just keep an eye on him, and if his condition worsens take him to the vet.

I bet he'll be just fine.