[refactor] Refactor guardrail error handling - add 400 error code (#4297)
Signed-off-by: Maciej Bala <mbala@nvidia.com> Co-authored-by: Hongsheng Liu <liuhongsheng4@huawei.com>
This commit is contained in:
1 parent
e27fd46ab9
commit
03cc888485
19 files changed
+608
-16
No files matched your search
@@ -809,6 +809,8 @@ class Orchestrator:
|
||||
request_id=parent_id,
|
||||
stage_id=stage_id,
|
||||
error=output.error,
|
||||
status_code=getattr(output, "error_status_code", None),
|
||||
error_type=getattr(output, "error_type", None),
|
||||
)
|
||||
)
|
||||
await self._cleanup_request_ids(
|
||||
|
||||
Reference in new issue
Block a user