// setting MIME-type to text/HTML:
String mimetype = RestParams.MIME_TEXT_HTML;
// setting responsecode to 200 (HTTP OK):
int responsecode = 200;
// ( ',null,null' here means we don't use xslt or css here)
RestResponse response = new RestResponse(responseString, mimetype, responsecode, null, null);
return response;
}