Move Robocraft auth server to actix_web for better error responses #31

This commit is contained in:
NG (Graham) committed 2025-07-27 16:12:45 -04:00
1 parent 796304bc4a
commit 89b1db35ba
23 files changed
+455 -211

No files matched your search

+20
View File
@@ -101,3 +101,23 @@ impl LobbyReasonCode {
}
}
}
#[repr(u16)] // doesn't really matter
#[derive(Debug)]
pub enum AuthErrorCode {
Unknown = 0,
InvalidDisplayName = 122,
AccountBlocked202 = 202,
PasswordInvalidated = 203,
BadCredentials = 204,
DisplayeNameAlreadyInUse = 210,
AccountBlocked301 = 301,
AccountUnconfirmed = 302,
UnlinkedSteamAccount = 303,
}
impl AuthErrorCode {
pub fn to_str(self) -> String {
(self as u16).to_string()
}
}