-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy patherror-code.enum.ts
More file actions
94 lines (77 loc) · 1.88 KB
/
error-code.enum.ts
File metadata and controls
94 lines (77 loc) · 1.88 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
export enum ErrorCode {
// Funding
FundingNotExists = '0000',
EndDatePast = '0001',
// Donation
FundingClosed = '0100',
FundingNotClosed = '0101',
DonationNotExists = '0102',
DonationAmountExceeded = '0103',
ProvisionalDonationNotFound = '0104',
// Gift
IncorrectGiftUrl = '0200',
GiftNotFound = '0201',
// Gratitude
GratitudeAlreadyExists = '0300',
GratitudeNotExist = '0301',
// RollingPaper
// Comment
CommentNotFound = '0500',
// Image
IncorrectImageUrl = '0600',
IncorrectImageHost = '0601',
ImageUriNotSpecified = '0602',
ImageNotFound = '0603',
ImageIntegrityError = '0604',
ImageAlreadyExists = '0605',
// User
UserNotFound = '0700',
UserNotUpdated = '0701',
UserAlreadyDeleted = '0702',
NotValidEmail = '0703',
NotValidPhone = '0704',
NotValidNick = '0705',
PasswordIncorrect = '0706',
UserFailedToCreate = '0707',
UserAccessDenied = '0708',
// Admin
SnsLoginBlocked = '0710',
// Friend
AlreadySendRequest = '0800',
AlreadyFriend = '0801',
// Jwt
JwtNotExpired = '0900',
JwtExpired = '0901',
NotValidToken = '0902',
TokenMissing = '0903',
RefreshExpire = '0904',
UserAlreadyExists = '0905',
FailedLogout = '0906',
RedisServerError = '0907',
InvalidUserRole = '0908',
// Default image
DefaultImgIdNotExist = '1000',
DefaultImgNotExist = '1001',
// Account
AccountNotFound = '1100',
// Notification
WrongNotiType = '1200',
// Address
AddressNotFound = '1300',
// Validators
InvalidUrl = '1400',
// Deposits
DepositUnmatched = '1500',
DepositPartiallyMatched = '1501',
DepositNotFound = '1502',
// Generic
InvalidStatusChange = '1600',
InvalidStatus = '1800',
InconsistentAggregationError = '1700',
InvalidPage = '1701',
InvalidLimit = '1702',
// CsBoard & CsComment
CsBoardNotFound = "1900",
CsCommentNotFound = "1901",
CsBoardIsComplete = "1902",
}