A 16-year-old Syrian boy who arrived at the Canadian border at Fort Erie, Ont., claiming refugee status last month was taken into custody and placed in isolation for three weeks in a Toronto detention centre.

Last week, officials with the Canada Border Services Agency (CBSA) ordered the boy deported, because by law, Canada no longer accepts refugees who come through the United States.

But his lawyers say the boy is an unaccompanied minor and should be allowed into Canada to claim refugee status.

'Three weeks in detention, I'm feeling sad, and I cry all the time. - Mohammed, 16

Aviva Basman of the Refugee Law Office, a part of Legal Aid Ontario, is appealing to Minister of Immigration and Refugees John McCallum to allow the teenager to apply for refugee status in Canada. (Maureen Brosnahan/CBC) ​Aviva Basman of the Refugee Law Office in Toronto called it "outrageous" that Mohammed (we are not using his last name for safety reasons) was not only denied entry but was detained in isolation for three weeks at an immigration holding centre in the Toronto neighbourhood of Rexdale.

"Everyone who's involved in Mohammed's case has found the way CBSA treated him quite shocking," she told CBC News. "We're talking about a 16-year-old Syrian boy who's just trying to find protection."

Mohammed has since been released from the centre and is being housed at Romero House, a Toronto shelter for refugees.

Family felt Canada a safe place

He met with a CBC reporter and, in broken English, described his time in isolation.

"I don't sleep good. I dream," he said. "Three weeks in detention, I'm feeling sad, and I cry all the time. The room, the iron on the windows, I'm afraid."

While detained, he was not able to contact his family and was allowed outside for 15 minutes twice a day. The rest of the time, he watched television or tried to sleep, he said.

"I want to stay here. I want to go to school. I no have anyone in the United States," he said.

There is no contention here that he was dangerous, that he had done wrong, that there was any reason to detain him. - Audrey Macklin, professor of law, University of Toronto

"Canada government bring many people from Syria, Jordan and Lebanon, Turkey, but I am coming here, and they don't accept me."

Audrey Macklin, a professor of human rights law at the University of Toronto Faculty of Law, says Mohammed's detention violates the international conventions governing the rights of children and the treatment of refugees to which Canada is a signatory.

"Detention of children is supposed to be a last resort because detention is not in their best interests," Macklin said. "There is no way, looking at the facts of this case, that you can say this was the last resort.

"There is no contention here that he was dangerous, that he had done wrong, that there was any reason to detain him, much less in solitary."

The CBSA states in some of its information documents that it detains children under 18 "only as a last resort."

But Macklin says Mohammed's case illustrates that when it comes ot the reality on the ground, there is a disconnect between the open-door approach to refugees that the Liberal government advocates and the CBSA's perception of foreign nationals and asylum seekers as "threats and potential wrongdoers."

'Very scared and confused'

Hannah Deloughery, an intern at Romero House, has been working with Mohammed since he arrived there.

"He's very scared and confused and doesn't really understand why this happened," said Deloughery. "He's alone in Canada and needs our protection."

Mohammed's family fled Syria for Egypt after the war began. But when Mohammed turned 16, his residency permit in Egypt expired. He faced being sent back to Syria and being conscripted into the military.

Fearing that, his parents flew with him to the United States and then arranged to get him to the Canadian border. They believed Canada's openness to accept Syrian refugees meant he would be safe here while they flew back to Egypt.

"They had heard the prime minister say that Syrians were welcome in Canada and would be safe and protected here, and they felt this was the best place for Mohammed to come," Deloughery said.

The family has cousins in the Toronto suburb of Mississauga.

Deportation delayed a week

CBSA officials denied the boy entry. They took him into custody, even though he had arrived on his own and would have been considered an "unaccompanied minor" and, therefore, admissible.

Last week, he was ordered deported to the U.S. From there, he could be sent back to Syria via Egypt.

"It is a terrifying prospect for him to go to the United States, where he doesn't know what will happen to him. He doesn't know if he will be able to stay in the United States or if he will be deported to Egypt and then face deportation to Syria," Basman said. "He doesn't have any family or friends in the U.S., where here, he has cousins and family friends and a developing community of support."

Mohammed was scheduled to be deported on Feb. 18, but on Monday, border officials delayed that for a week. His lawyers are now appealing to the minister of immigration and refugees to allow him to stay and have his case heard by a refugee determination board. The minister, John McCallum, has yet to respond.

"We're asking the minister to intervene," Basman said. "This boy's been through a lot, and we really hope that, ultimately, this will resolve well for him and that Canada will do the right thing here."

Meanwhile, Mohammed remains at Romero House.

He's passing his time helping other recently arrived refugees from Syria settle into Canada. He says he hopes to remain in Canada, finish high school and study to be an engineer.