From 3e04a6afb8661694c077102edd7b5ff2c4686038 Mon Sep 17 00:00:00 2001 From: kdeng00 Date: Tue, 20 May 2025 20:15:22 -0400 Subject: [PATCH] endpoint return fix --- src/callers/song.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/callers/song.rs b/src/callers/song.rs index a99d23f..d6b43c5 100644 --- a/src/callers/song.rs +++ b/src/callers/song.rs @@ -351,13 +351,13 @@ pub mod endpoint { } Err(err) => { response.message = err.to_string(); - (axum::http::StatusCode::OK, response) + (axum::http::StatusCode::BAD_REQUEST, response) } } } Err(err) => { response.message = err.to_string(); - (axum::http::StatusCode::OK, response) + (axum::http::StatusCode::BAD_REQUEST, response) } } } else {