From d93cbde79de6e630e7f31aa0b70f40b63a8df608 Mon Sep 17 00:00:00 2001 From: Martin Stefcek Date: Mon, 8 Apr 2024 17:16:40 +0400 Subject: [PATCH] change code --- atoma-inference/src/jrpc_server/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/atoma-inference/src/jrpc_server/mod.rs b/atoma-inference/src/jrpc_server/mod.rs index 97fd6d52..6da17e05 100644 --- a/atoma-inference/src/jrpc_server/mod.rs +++ b/atoma-inference/src/jrpc_server/mod.rs @@ -1,6 +1,6 @@ use std::sync::Arc; -use axum::{extract::State, routing::post, Json, Router}; +use axum::{extract::State, http::StatusCode, routing::post, Json, Router}; use serde_json::{json, Value}; use tokio::sync::{mpsc, oneshot}; @@ -27,7 +27,7 @@ async fn jrpc_call( "jsonrpc": "2.0", "id": 1, "error": { - "code": -32600, + "code": StatusCode::INTERNAL_SERVER_ERROR.as_u16(), "message": err } })),