code: def return_resource(self, resource, status=200, statusMessage="OK"):
          
          self.set_status(status, statusMessage)
          self.write(json.loads(json_util.dumps(resource)))
docs: 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