SRD:Death Ward

The subject is immune to all death spells, magical death effects, energy drain, and any negative energy effects.

This spell doesn’t remove negative levels that the subject has already gained, nor does it affect the saving throw necessary 24 hours after gaining a negative level.

Death ward does not protect against other sorts of attacks, even if those attacks might be lethal.