mirror of
https://github.com/katanemo/plano.git
synced 2026-06-17 15:25:17 +02:00
pass through client error as it is to developer
This commit is contained in:
parent
68727cd739
commit
683f87ddb1
1 changed files with 2 additions and 2 deletions
|
|
@ -59,8 +59,8 @@ pub async fn agent_chat(
|
|||
|
||||
let json_string = error_json.to_string();
|
||||
let mut response = Response::new(ResponseHandler::create_full_body(json_string));
|
||||
*response.status_mut() =
|
||||
hyper::StatusCode::from_u16(*status).unwrap_or(hyper::StatusCode::BAD_REQUEST);
|
||||
*response.status_mut() = hyper::StatusCode::from_u16(*status)
|
||||
.unwrap_or(hyper::StatusCode::INTERNAL_SERVER_ERROR);
|
||||
response.headers_mut().insert(
|
||||
hyper::header::CONTENT_TYPE,
|
||||
"application/json".parse().unwrap(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue