diff --git a/projects/fal/src/fal/api/api.py b/projects/fal/src/fal/api/api.py index 2897037f0..557e733fa 100644 --- a/projects/fal/src/fal/api/api.py +++ b/projects/fal/src/fal/api/api.py @@ -1293,7 +1293,10 @@ async def not_found_exception_handler(request: Request, exc: HTTPException): headers = dict(exc.headers) if exc.headers else {} headers["x-fal-billable-units"] = "0" return JSONResponse( - {"detail": f"Path {request.url.path} not found"}, + { + "detail": f"Path {request.url.path} not found", + "error_code": "path_does_not_exist", + }, 404, headers=headers, )