Solvent-dependent oxidations of 5- and 6-azaindoles to trioxopyrrolopyridines and functionalised azaindoles.