From ef173d317047c0c389c07436acded9eb6983f656 Mon Sep 17 00:00:00 2001 From: kdeng00 Date: Fri, 7 Nov 2025 11:36:54 -0500 Subject: [PATCH] tsk-245: Fixed endpoint indicating success when no content is found --- src/callers/song.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/callers/song.rs b/src/callers/song.rs index 1dd9690..2aff68d 100644 --- a/src/callers/song.rs +++ b/src/callers/song.rs @@ -253,7 +253,7 @@ pub mod endpoint { Ok(songs) => { if songs.is_empty() { response.message = String::from("No songs available"); - (axum::http::StatusCode::NO_CONTENT, axum::Json(response)) + (axum::http::StatusCode::NOT_FOUND, axum::Json(response)) } else { response.message = String::from(super::super::response::SUCCESSFUL); response.data = songs;