In answer to your question here's a quote from today's Washington Post:
The prosecutor also said that the officers who initially arrested Mr. Gray had done so illegally, without probable cause. Officers charged him with possession of a switchblade, but Ms. Mosby said, The knife was not a switchblade and is lawful under Maryland law.
Arresting someone who hasn't committed a crime is illegal.
Arresting someone who hasn't committed a crime and then causing or contributing to their death while they're in your custody is and should be VERY illegal.
If one is to believe the prosecutor. I sense we’ll hear the account and it was completely lawful. She doesn’t look too believable after a month normal amount of scrutiny.