An occasional touch of Delhi belly is unavoidable when you're not used to the spicy food, but nothing to worry about; take it easy and drink lots of liquids, and it'll pass.
Spicy food can cause stomach problems to those not used to it.