SPMS_API/SPMS.Domain/Common/ErrorCodes.cs
seonkyu.kim 830cbf2edc feat: 대용량 발송/상태조회/취소 API 구현 (#130)
- POST /v1/in/push/send/bulk: CSV 대량 발송 (비동기)
- POST /v1/in/push/job/status: Job 상태 조회
- POST /v1/in/push/job/cancel: Job 취소
- BulkJobStore: Redis Hash 기반 Job 상태 관리
- PushWorker: Job 진행률 추적 및 취소 체크

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-10 22:55:39 +09:00

53 lines
1.7 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";
// === Account (2) ===
public const string PasswordValidationFailed = "121";
public const string ResetTokenError = "122";
// === Service (3) ===
public const string DecryptionFailed = "131";
public const string InvalidCredentials = "132";
// === 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";
// === File (8) ===
public const string FileNotFound = "181";
public const string FileTypeNotAllowed = "182";
public const string FileSizeExceeded = "183";
}