Two teenage boys convicted of rape had initially been given non-custodial sentences.