@app.get('/unicorns/{name}')
async def read_unicorn(name: str):
    if (name == 'yolo'):
        raise UnicornException(name=name)
    return {'unicorn_name': name}
@app.get('/unicorns/{name}')
async def read_unicorn(name: str):
    if (name == 'yolo'):
        raise UnicornException(name=name)
    return {'unicorn_name': name}