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.
If You Want to Do More Than Just the Basics with Your Resignation Letter. You can always write more, and craft a longer resignation letter, but the truth is that it isn't necessary. You can add a portion of the note where you thank your manager or boss for the opportunities and time you have had together, or add that you hope to keep in touch, but in reality, if you really feel this way you probably should make an effort and find an opportunity to say these things in person (rather than getting an email).