There's no regulation that says there has to be a gap of minimum size, if that was part of your question.
The issue with small gaps is that rodents, birds and the wind gets in there, and drop stuff (including leaves) which can't easily be got out again.
If you are asking about Planning Consent, you cannot assume that just because it is small, it didn't need planning consent. If it has been there more than 4 years, the planning authority cannot now force its removal.
If you are asking about Building Regulations approval, every extension that is habitable (i.e. not a porch, not a conversatory, connected to the main house via a normal internal door) should have had BR approval. It is the indicator that tells you that it has (probably) been constructed to reasonable minimum standards. Without it you have no idea.
There isn't much you can do about it if doesn't have it - except employ a surveyor to assess the main visible parts. He/she won't be able to tell if the foundations are deep enough though.