Acceptance With Displeasure. It's possible that your boss won't take immediate action like the reaction above__but will make it clear that he or she isn't exactly happy about your resignation. Maybe, for example, she'll mutter a curt, "Thank you for letting me know," followed by two weeks of obvious displeasure or denial that you're leaving__through gruff comments ("You know, you're really leaving us in the lurch") or a refusal to interact with you more than absolutely necessary.
Spot the Signs. Do you have a good relationship with your manager? Is he or she relatively reasonable? Do you have regular one_on_ones where you talk about your career goals and growth? If so, it's likely that your boss will accept your resignation with grace, help develop a plan of action for your last two weeks, and maybe even attend your farewell happy hour.