updated to send standard Rest Response