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), })),