tsk-245: Modify result when getting songs but no songs are present #247

Merged
kdeng00 merged 3 commits from tsk-245 into main 2025-11-07 11:48:07 -05:00
Showing only changes of commit ef173d3170 - Show all commits
+1 -1
View File
@@ -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;