From ab112a56af85e09e15123ac860a229acdd7f6397 Mon Sep 17 00:00:00 2001 From: phoenix Date: Fri, 12 Jun 2026 17:21:41 -0400 Subject: [PATCH] Doc changes --- src/callers/login.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/callers/login.rs b/src/callers/login.rs index 5352a0f..3d81475 100644 --- a/src/callers/login.rs +++ b/src/callers/login.rs @@ -750,7 +750,8 @@ pub async fn update_password( content_type = "application/json" ), responses( - (status = 200, description = "User login successful", body = response::UserUpdateNameResponse), + (status = 200, description = "Names were updated", body = response::UserUpdateNameResponse), + (status = 304, description = "Nothing to change", body = response::UserUpdateNameResponse), (status = 400, description = "Bad data", body = response::UserUpdateNameResponse), (status = 500, description = "Something went wrong", body = response::UserUpdateNameResponse) ) @@ -765,7 +766,7 @@ pub async fn update_name_of_user( let (valid_request, reason) = payload.is_valid(); if !valid_request { ( - axum::http::StatusCode::INTERNAL_SERVER_ERROR, + axum::http::StatusCode::BAD_REQUEST, axum::Json(response::UserUpdateNameResponse { message: reason.unwrap_or_default(), data: Vec::new(),