refactor(rest) putFile callback: pError, pMsg -> pError