From 2e5cec12db5435ad1f6581dfc979df5977d89d56 Mon Sep 17 00:00:00 2001 From: datdo-msft <131494842+datdo-msft@users.noreply.github.com> Date: Tue, 5 Nov 2024 16:26:48 -0800 Subject: [PATCH] AppError should return 500 (#6) --- llgtrt/src/error.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llgtrt/src/error.rs b/llgtrt/src/error.rs index cd17c90..426a9e6 100644 --- a/llgtrt/src/error.rs +++ b/llgtrt/src/error.rs @@ -11,7 +11,7 @@ pub struct AppError(anyhow::Error); impl IntoResponse for AppError { fn into_response(self) -> Response { ( - StatusCode::BAD_REQUEST, + StatusCode::INTERNAL_SERVER_ERROR, Json(json!({ "error": format!("{}", self.0), })),