def resp_simple(self, code, msg):
        if self.isJson:            
            json.dump({"err_code":str(code), "err_msg":str(msg)}, self.response.out)
        else:
            self.response.out.write('%s%s' % (struct.pack('!i', code), msg))
        if code == 0:
            logging.error(msg)
dataset/ETHPy150Open SafeSlingerProject/SafeSlinger-AppEngine/safeslinger-demo/python/syncUsers.py/SyncUsers.resp_simple/original