If your friends say that, "You are so busted." "haha", (in a relaxed, lauhging tone) it means that you did something that will get you in trouble, by authority of certain types (parents, teachers, cops, etc.). or "You are so busted. That sucks" (In a direct tone, but sincere)
If a person of authority says, "You are so busted." (in an angry, dissapointed, upset tone), It means you are in trouble right then and there!