tsk-245: Fixed endpoint indicating success when no content is found

This commit is contained in:
kdeng00
2025-11-07 11:36:54 -05:00
parent 8b70e062a1
commit ef173d3170
+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;