From 1f8c7302593bb3408fcf1219a8990adc5947a831 Mon Sep 17 00:00:00 2001 From: wangxiaolei Date: Sat, 24 Jan 2026 10:16:16 +0800 Subject: [PATCH] feat: optimize http status code (#31430) --- api/controllers/console/app/error.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/controllers/console/app/error.py b/api/controllers/console/app/error.py index 6b4bd6755a..3fa15d6d6d 100644 --- a/api/controllers/console/app/error.py +++ b/api/controllers/console/app/error.py @@ -82,13 +82,13 @@ class ProviderNotSupportSpeechToTextError(BaseHTTPException): class DraftWorkflowNotExist(BaseHTTPException): error_code = "draft_workflow_not_exist" description = "Draft workflow need to be initialized." - code = 400 + code = 404 class DraftWorkflowNotSync(BaseHTTPException): error_code = "draft_workflow_not_sync" description = "Workflow graph might have been modified, please refresh and resubmit." - code = 400 + code = 409 class TracingConfigNotExist(BaseHTTPException):