Make REST response finally working