Sepsis is a severe response the body has to an infection. It is most often caused by bacteria. A baby can be infected before birth, during delivery, or after birth.