Requirement: To receive this ending James must act like he wants to survive. Keeping stamina healthy, not doing suicidal things, and acting like you want to find Mary by going in the correct directions. This ending is the easiest to achieve and if you just play through without aiming for a certain ending, this is the one you're most likely to get. Do the following and you should get this ending.
-Recover your stamina (health) as soon as it drops. Try to keep green stamina throughout the whole game -After meeting Maria in Rosewater Park do not head east and do not make Maria tell James which direction the Hotel lies -Listen to the entire sick in bed conversation of Mary in the last long corridor before the last boss fight -Do everything that is recommended to avoid the Maria Ending
Avoid the Leave Ending: -When your health drops, don't be too quick to heal and don't worry too much when you have red status