Set response data and datatype