He could have avoided the entire situation by simply saying, oh I was just waiting for someone or some shit like that. He didn’t have to start shit off by questioning everything the cop was saying.
The cop certainly overreacted, but the kid was asking for something. I’m always as courteous as can be with Cops, simply because they are either on your side, or not, so try to get them on your side whenever you can.