api = fastapi.FastAPI() @api.get(\'/api/sum\') def caculate(z): if z == 0 : return fastapi.Response(content = {\'Error\' : \'Z must be an integer\'},