def api_response(self, data):
self.set_header("<STR_LIT:Content-Type>", "<STR_LIT>")<EOL>data = json.dumps(data, default=pymongo.json_util.default)<EOL>self.finish(data)<EOL>
return an api response in the proper output format with status_code == 200