diff --git a/main.py b/main.py index 5e094a6..d244ebd 100644 --- a/main.py +++ b/main.py @@ -185,6 +185,15 @@ async def download_inp(name: str, response: Response): response.status_code = status.HTTP_400_BAD_REQUEST return True - +@app.get("/getjson/") +async def get_json(): + return JSONResponse( + status_code = status.HTTP_400_BAD_REQUEST, + content={ + 'code': 400, + 'message': "this is message", + 'data': 123, + } + )