Would someone please care to define “Happy Ending”? What are the elements that are present when you’re satisfied with a book’s conclusion?

Just asking. Thanks.