INNER CODE UNIT · Python

ok

akutayural/APIException · benchmark/test_app/main.py:13

async def ok():
    return {"message": "ok"}


@app.get("/error")
async def error():
    raise APIException(
        error_code=TestExceptionCode.FAIL_CASE,
        http_status_code=500,
        status=ExceptionStatus.FAIL
    )


"""
# Once dockerdan build alip docker composer i ayaga kaldirmak gerekiyor
docker-compose build --no-cache
docker-compose up                         

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…