Syracuse, NY -- A Syracuse man had just left court downtown when he ended up in handcuffs Tuesday for spitting on a patrol car, according to city police records.

Jeffery Brown, 27, of 129 John St., caught the attention of an officer after he began swearing at the police while walking with two other men in the 400 block of South Warren Street, records stated.

The officer was sitting in a marked patrol car when Brown walked over and spit on the car's hood, the report stated.

Brown "seemed surprised" when he realized someone was in the police car, the officer wrote in the report. Brown was handcuffed. At that point, he began kicking a police transport van nearby, and was threatened with pepper spray before he stopped, records stated.

Brown was charged with disorderly conduct, a violation. He later explained to officers that he was having a bad day after a court appearance on accusations he menaced his girlfriend.

"It was stupid, I am having a bad day," Brown was quoted as saying in the police report.