From 087e214eed60081c09327f2077c47c8ec0dd4837 Mon Sep 17 00:00:00 2001 From: kdeng00 Date: Wed, 29 Oct 2025 15:03:21 -0400 Subject: [PATCH] tsk-179: Updated status code --- src/callers/queue/song.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/callers/queue/song.rs b/src/callers/queue/song.rs index 40cc9a8..7d39246 100644 --- a/src/callers/queue/song.rs +++ b/src/callers/queue/song.rs @@ -124,7 +124,7 @@ pub mod endpoint { content_type = "multipart/form-data" ), responses( - (status = 200, description = "Song queued", body = super::response::song_queue::Response), + (status = 201, description = "Song queued", body = super::response::song_queue::Response), (status = 400, description = "Invalid request passed", body = super::response::song_queue::Response), (status = 500, description = "Error queueing song", body = super::response::song_queue::Response) ) @@ -188,7 +188,7 @@ pub mod endpoint { String::from(super::super::super::response::SUCCESSFUL) }; - (axum::http::StatusCode::OK, axum::Json(response)) + (axum::http::StatusCode::CREATED, axum::Json(response)) } /// Endpoint to link a user id to a queued song