When your immune system fails to respond adequately to infection, it's called an immunodeficiency. People may also suffer from the opposite condition, an overactive immune system that attacks healthy cells as though they were foreign bodies, and that is called an autoimmune response.