[TAC-178] protection on REST exception and some logs