  We show that the subleading soft photon theorem in a $(d+2)$-dimensional
massless abelian gauge theory gives rise to a Ward identity corresponding to
divergent large gauge transformations acting on the celestial sphere at null
infinity. We further generalize our analysis to $(d+2)$-dimensional non-abelian
gauge theories and show that the leading and subleading soft gluon theorem give
rise to Ward identities corresponding to asymptotic symmetries of the theory.
