The term you're looking for is "Hemingway Hero" or "Hemingway Code Hero" or just "Code Hero".
Hemingway's heroic characters may not have been perfect (they were in fact deeply flawed), but they lived by a moral code. There are several attributes the Hemingway Hero has.
- Hemingway's Heros are cool under pressure and do not crack or break when the going gets tough. In fact, they are at their best when things go awry.
- Honor, modesty, and chivalry towards women are often part of the Hemingway code hero. While they may drink, gamble, fight, and cause problems, the Hemingway hero is never dishonorable, even to his own detriment.
- They are stoic (quiet) and prefer to let their actions speak for them. They are not wordsmiths, and prefer to be outside, doing things, rather than inside talking about things.
- They have self control. Unlike other characters in the books, the Hemingway Hero has control over himself at all times. He may not succeed, but he will fail by his own decisions.
According to Philip Young, the "Hemingway code" was exemplified by Jake Barnes in The Sun Also Rises, Frederic Henry in A Farewell to Arms, Robert Jordan in For Whom The Bell Tolls (1940), and Santiago in The Old Man and the Sea (1952).