Spot the Signs. The most obvious sign that you'll receive this reaction is if you haven't had a healthy relationship with your manager in the past. Maybe you continually challenged his ideas, and he took that as a sign of disrespect. Or, maybe she always made unreasonable demands, and you were never able to see eye_to_eye on your to_do list. Or perhaps his moods were completely unpredictable. In any case, if your relationship has been strained, you may receive a less_than_ideal response to your two weeks' notice.
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.