"Detention is never in the best interests of the child and always constitutes a child rights violation," a spokesperson for the UN's human rights chief said on Tuesday.