Flavohaemoglobin HmpX from Erwinia chrysanthemi confers nitrosative stress tolerance and affects the plant hypersensitive reaction by intercepting nitric oxide produced by the host.