Hey! Take it easy... 2 pounds is nothing to be upset about--it could be simply because you've been sick.
When folks get sick it's not a free ticket to overeat, but at the same time, restricting food isn't the best way to get better. The best thing is to eat good quality foods in an amount that will maintain your weight until you're well.
There is no failure in this, unless you thought you were entitled to pizza and ice cream bars nonstop the whole time.
And even if that's what happened, it's over now, and you just have to go on from here!
Hang in there--you will reach your goal--maybe not "on time," but you will!