has detained you is a minor offense but suggest that there is something more going on. Stopping a pulling a gun on the officer is major and usually one you don't get to walk away from.
This site list the different levels of police stops.
http://www.riddelllaw.com/when-can-police-question-me/