- 비밀번호 정책 서버 검증 강화 (영대/소문자, 숫자, 특수문자 조합, 8~64자) - 동일 비밀번호 재사용 금지 검증 추가 - 비밀번호 변경 후 세션 무효화 (Refresh Token 삭제) - ChangePasswordResponseDto 신규 (re_login_required 힌트) - 에러코드 추가 (PasswordPolicyViolation, PasswordReuseForbidden) - AuthController Swagger 문서 보강 Closes #251
71 lines
2.4 KiB
C#
71 lines
2.4 KiB
C#
namespace SPMS.Domain.Common;
|
|
|
|
/// <summary>
|
|
/// SPMS 에러 코드 상수
|
|
/// 코드 체계: [상태(0=성공,1=실패)][도메인(0~8)][순번]
|
|
/// </summary>
|
|
public static class ErrorCodes
|
|
{
|
|
// === 성공 ===
|
|
public const string Success = "000";
|
|
|
|
// === 공통 (0) ===
|
|
public const string BadRequest = "101";
|
|
public const string Unauthorized = "102";
|
|
public const string NotFound = "103";
|
|
public const string InternalError = "104";
|
|
public const string NoChange = "105";
|
|
public const string LimitExceeded = "106";
|
|
public const string Conflict = "107";
|
|
public const string Forbidden = "108";
|
|
|
|
// === Auth (1) ===
|
|
public const string VerificationCodeError = "111";
|
|
public const string LoginFailed = "112";
|
|
public const string LoginAttemptExceeded = "113";
|
|
public const string TermsNotAgreed = "114";
|
|
public const string PrivacyNotAgreed = "115";
|
|
public const string VerifyResendCooldown = "116";
|
|
public const string VerifyAttemptExceeded = "117";
|
|
|
|
// === Account (2) ===
|
|
public const string PasswordValidationFailed = "121";
|
|
public const string ResetTokenError = "122";
|
|
public const string PasswordPolicyViolation = "123";
|
|
public const string PasswordReuseForbidden = "124";
|
|
|
|
// === Service (3) ===
|
|
public const string DecryptionFailed = "131";
|
|
public const string InvalidCredentials = "132";
|
|
public const string ServiceScopeRequired = "133";
|
|
public const string ServiceNameDuplicate = "134";
|
|
|
|
// === Device (4) ===
|
|
public const string DeviceNotFound = "141";
|
|
public const string DeviceTokenDuplicate = "142";
|
|
|
|
// === Message (5) ===
|
|
public const string MessageNotFound = "151";
|
|
|
|
// === Push (6) ===
|
|
public const string PushSendFailed = "161";
|
|
public const string PushStateChangeNotAllowed = "162";
|
|
public const string JobNotFound = "163";
|
|
public const string JobAlreadyCompleted = "164";
|
|
|
|
// === Stats (7) ===
|
|
public const string StatsDateRangeInvalid = "171";
|
|
public const string StatsServiceScopeInvalid = "172";
|
|
|
|
// === File (8) ===
|
|
public const string FileNotFound = "181";
|
|
public const string FileTypeNotAllowed = "182";
|
|
public const string FileSizeExceeded = "183";
|
|
|
|
// === Tag (9) ===
|
|
public const string TagNotFound = "191";
|
|
public const string TagNameDuplicate = "192";
|
|
public const string TagNameImmutable = "193";
|
|
public const string TagLimitExceeded = "194";
|
|
}
|