The police or Crown Prosecution Service can give you a caution (warning) or a penalty notice if you commit a minor crime.
The rules are different in Scotland.