def json(body, status=200, headers=None):
    return HTTPResponse(json_dumps(body), headers=headers, status=status,
        content_type='application/json')

def text(body, status=200, headers=None):
    pass
Sanic (asyncio + uvloop webserver) - Return a custom response