fixed REST response message marshalling