Upvote:10
You breached the conditions of your visa and were caught. Whether you were arrested or detained, it is likely you would have been served an order for administrative removal. The document you received would indicate any applicable re-entry ban, e.g., 12 months if you left the UK voluntarily and at your own expense.
If you are unclear about whether you are barred from entering the UK for any period of time, you could make a Request personal information held in the borders, immigration and citizenship system.
The removal order would also advise your rights, although, in general, a breach of a UK visa issued for 6 months or less, e.g, the Standard Visitor visa, does not have a right of appeal attached to it.