update restify code error