A good death can be explained through looking through a social, cultural, individual, religious lens.
Coming from a religious background, rather different to that of the Western world, I believe a good death is one where the mind is at peace. To be able to die, knowing you have fulfilled your role, aspirations and goals in life is something that is of importance to me. The concept of afterlife is one that is not generalizable to all, though for those from a religious background, it may play a great role in the meaning of death. A good death can be thought of as, somewhat, being prepared for what’s to come next.
Looking from a more cultural aspect, perhaps knowing that family and those who you love are by your side can make the experience of death easier. Every culture has different rituals associated with death with contribute to the meaning of death too.
When looking at death from a more individualistic lens, the meaning can depend on individual experiences, such as watching a close family member suffer from metastatic cancer, personality of an individual and particular fears and phobias of people. Dying from a road traffic accident or from drowning may not be as traumatic for one person as it is for another due to differences in thoughts, experiences, phobias etc.