diff --git a/src/handler/group.rs b/src/handler/group.rs index 9f31784..e9cc85d 100644 --- a/src/handler/group.rs +++ b/src/handler/group.rs @@ -116,6 +116,8 @@ pub async fn delete_member( } /// Leave group +/// +/// Leader of the group cannot leave group #[utoipa::path( delete, path = "/group/leave", @@ -123,6 +125,7 @@ pub async fn delete_member( responses( (status = 200, description = "Success", body = Group), (status = 401, description = "Unauthorized"), + (status = 403, description = "Forbidden"), ), security( ("api_key" = [])