John Buchan did an excellent job, I think, of describing the best possible death in The Half-Hearted (1900): Lewis Haystoun dying in the course of single-handedly delaying the Russian invasion of India at a narrow pass in the Hindu Kush, rifle in hand.
The fire died down to embers and a sudden scattering of ashes woke him out of his dreaming. The old Scots land was many thousand miles away. His past was wiped out behind him. He was alone in a very strange place, cut off by a great gulf from youth and home and pleasure. For an instant the extreme loneliness of an exileâ€™s death smote him, but the next second he comforted himself. The heritage of his land and his people was his in this ultimate moment a hundredfold more than ever. The sounding tale of his peopleâ€™s warsâ€”one against a host, a foray in the mist, a last stand among the mountain snowsâ€”sang in his heart like a tune. The fierce, northern exultation, which glories in hardships and the forlorn, came upon him with such keenness and delight that, as he looked into the night and the black unknown, he felt the joy of a greater kinship. He was kin to men lordlier than himself, the true-hearted who had ridden the Kingâ€™s path and trampled a little world under foot. To the old fighters in the Border wars, the religionists of the South, the Highland gentlemen of the Cause, he cried greeting over the abyss of time. He had lost no inch of his inheritance. Where, indeed, was the true Scotland? Not in the little barren acres he had left, the few thousands of city-folk, or the contentions of unlovely creeds and vain philosophies. The elect of his race had ever been the wanderers. No more than Hellas had his land a paltry local unity. Wherever the English flag was planted anew, wherever men did their duty faithfully and without hope of little rewardâ€”there was the fatherland of the true patriot.
The time was passing, and still the world was quiet. The hour must be close on midnight, and still there was no sign of men. For the first time he dared to hope for success. Before, an hourâ€™s delay was all that he had sought. To give the north time for a little preparation, to make defence possible, had been his aim; now with the delay he seemed to see a chance for victory. Bardur would be alarmed hours ago; men would be on the watch all over Kashmir and the Punjab; the railways would be guarded. The invader would find at the least no easy conquest. When they had trodden his life out in the defile they would find stronger men to bar their path, and he would not have died in vain. It was a slender satisfaction for vanity, for what share would he have in the defence? Unknown, unwept, he would perish utterly, and to others would be the glory. He did not care, nay, he rejoiced in the brave obscurity. He had never sought so vulgar a thing as fame. He was going out of life like a snuffed candle. George, if George survived, would know nothing of his death. He was miles beyond the frontier, and if George, after months of war, should make his way to this fatal cleft, what trace would he find of him? And all his friends, Wratislaw, Arthur Mordaunt, the folk of Glenavelinâ€”no word would ever come to them to tell them of his end. …
For in this ultimate moment he at last seemed to have come to his own. The vulgar little fears, which, like foxes, gnaw at the roots of the heart, had gone, even the greater perils of faint hope and a halting energy. The half-hearted had become the stout-hearted. The resistless vigour of the strong and the simple was his. He stood in the dark gully peering into the night, his muscles stiff from heel to neck. The weariness of the day had gone: only the wound in his ear, got the day before, had begun to bleed afresh. He wiped the blood away with his handkerchief, and laughed at the thought of this little care. In a few minutes he would be facing death, and now he was staunching a pin-prick.
He wondered idly how soon death would come. It would be speedy, at least, and final. And then the glory of the utter loss. His bones whitening among the stones, the suns of summer beating on them and the winter snowdrifts decently covering them with a white sepulchre. No man could seek a lordlier burial. It was the death he had always craved. From murder, fire, and sudden death, why should we call on the Lord to deliver us? A broken neck in a hunting-field, a slip on rocky mountains, a wounded animal at bayâ€”such was the environment of death for which he had ever prayed. But thisâ€”this was beyond his dreams.
And with it all a great humility fell upon him. His battles were all unfought. His life had been careless and gay; and the noble commonplaces of faith and duty had been things of small meaning. He had lived within the confines of a little aristocracy of birth and wealth and talent, and the great melancholy world scourged by the winds of God had seemed to him but a phrase of rhetoric. His creeds and his arguments seemed meaningless now in this solemn hour; the truth had been his no more than his crude opponentâ€™s! Had he his days to live over again he would look on the world with different eyes. No man any more should call him a dreamer. It pleased him to think that, half-hearted and sceptical as he had been, a humorist, a laughing philosopher, he was now dying for one of the catchwords of the crowd. He had returned to the homely paths of the commonplace, and young, unformed, untried, he was caught up by kind fate to the place of the wise and the heroic.