From 21ffa5c74792dec71eb8b50a8d5d263f4f678ffd Mon Sep 17 00:00:00 2001 From: shiroyashik <73055492+shiroyashik@users.noreply.github.com> Date: Fri, 26 Jul 2024 08:52:25 +0300 Subject: [PATCH] Update profile.rs --- src/api/figura/profile.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/figura/profile.rs b/src/api/figura/profile.rs index 5714926..54b2944 100644 --- a/src/api/figura/profile.rs +++ b/src/api/figura/profile.rs @@ -34,7 +34,7 @@ pub async fn user_info( let auth_system = match state.user_manager.get_by_uuid(&uuid) { Some(d) => d.auth_system.to_string(), None => return ( - StatusCode::NO_CONTENT, + StatusCode::BAD_REQUEST, [(header::CONTENT_TYPE, "text/plain")], "err".to_string() )// (StatusCode::NO_CONTENT, "not sculptor user".to_string()), //(StatusCode::NOT_FOUND, "not found".to_string()).into_response(),