From 6f3f563720648c868887b20e12066188cdd7ab29 Mon Sep 17 00:00:00 2001 From: 1zuna Date: Thu, 27 Jun 2024 07:06:41 +0200 Subject: [PATCH] fix: wrong error code --- azalea-auth/src/auth.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/azalea-auth/src/auth.rs b/azalea-auth/src/auth.rs index a5156b5b0..364f0472e 100755 --- a/azalea-auth/src/auth.rs +++ b/azalea-auth/src/auth.rs @@ -619,7 +619,7 @@ pub async fn get_profile( .map_err(|err| { match err.status() { Some(reqwest::StatusCode::UNAUTHORIZED) => GetProfileError::TokenNotValid, - Some(reqwest::StatusCode::FORBIDDEN) => GetProfileError::NoMinecraftProfile, + Some(reqwest::StatusCode::NOT_FOUND) => GetProfileError::NoMinecraftProfile, _ => GetProfileError::Http(err), } })?