Primary status is given to Shiva and Vishnu who are described as self-created. Vishnu voluntarily takes a mortal form as Ram, thus striding both categories. Hanuman, however, does not fit so neatly into the second category: yes, he takes birth on earth, but he is also described as immortal (Chiranjivi). There are no stories of his death.