diff --git a/compute_tools/src/http/api.rs b/compute_tools/src/http/api.rs index f77ee8ed41..fcff42e6b1 100644 --- a/compute_tools/src/http/api.rs +++ b/compute_tools/src/http/api.rs @@ -214,10 +214,13 @@ async fn routes(req: Request, compute: &Arc) -> Response (), + _ => { + let mut err_resp = Response::new(Body::from("query failed")); + *err_resp.status_mut() = StatusCode::INTERNAL_SERVER_ERROR; + return err_resp; + } } Response::new(Body::from("")) }