-
Notifications
You must be signed in to change notification settings - Fork 0
/
errors.js
28 lines (16 loc) · 853 Bytes
/
errors.js
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
exports.API_ENDPOINT_NOT_FOUND_ERR = "Api endpoint does not found";
exports.SERVER_ERR = "Something went wrong";
exports.AUTH_HEADER_MISSING_ERR = "auth header is missing";
exports.AUTH_TOKEN_MISSING_ERR = "auth token is missing";
exports.JWT_DECODE_ERR = "incorrect token";
exports.USER_NOT_FOUND_ERR = "User not found";
exports.ACCESS_DENIED_ERR = "Access deny for normal user";
exports.Email_NOT_FOUND_ERR = "email not found";
exports.MAIL_ALREADY_EXISTS_ERR =
"This mail is already registered. Please login instead.";
exports.INCORRECT_CRED_ERR =
"The email/password you have provided is invalid. Kindly recheck it.";
exports.EMAIL_NOT_FOUND_ERR = "Email not found";
exports.ADMIN_NOT_FOUND = "Admin not found";
exports.OTP_EXPIRED_ERR = "OTP has expired";
exports.VENDOR_NOT_PERMITTED = "Vendor is not verified or has been debarred"