From 0116f561133496ee0312b2aa02ce27638054af7e Mon Sep 17 00:00:00 2001 From: Shuchang Zheng Date: Mon, 17 Feb 2025 17:11:19 +0800 Subject: [PATCH] make MissingValueForParameter a 400 error (#1778) --- skyvern/exceptions.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/skyvern/exceptions.py b/skyvern/exceptions.py index 8f03dd0d..779a6cb4 100644 --- a/skyvern/exceptions.py +++ b/skyvern/exceptions.py @@ -152,7 +152,8 @@ class WorkflowRunNotFound(SkyvernHTTPException): class MissingValueForParameter(SkyvernHTTPException): def __init__(self, parameter_key: str, workflow_id: str, workflow_run_id: str) -> None: super().__init__( - f"Missing value for parameter {parameter_key} in workflow run {workflow_run_id} of workflow {workflow_id}" + f"Missing value for parameter {parameter_key} in workflow run {workflow_run_id} of workflow {workflow_id}", + status_code=status.HTTP_400_BAD_REQUEST, )