<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def return_resource(self, resource, status=200, statusMessage="OK"):
 """Return a resource response :param str resource: The JSON String representation of a resource response :param int status: Status code to use :param str statusMessage: The message to use in the error response """

        self.set_status(status, statusMessage)
        self.write(json.loads(json_util.dumps(resource)))