@floristcloud/api-lib 1.0.30 → 1.0.31
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/constant/error.js +1 -0
- package/constant/error.ts +1 -0
- package/package.json +1 -1
package/build/constant/error.js
CHANGED
|
@@ -109,6 +109,7 @@ exports.ERRORS = {
|
|
|
109
109
|
INCORRECT_CREDENTIALS: { code: 'A002', message: 'Invalid email or password', httpCode: 400 },
|
|
110
110
|
ALREADY_REGISTERED: { code: 'A001', message: 'User already exists', httpCode: 409 },
|
|
111
111
|
INVALID_USER_TYPE: { code: 'A018', message: 'Invalid user type', httpCode: 400 },
|
|
112
|
+
TOO_MANY_REQUESTS: { code: 'A019', message: 'Too many requests', httpCode: 429 },
|
|
112
113
|
//DOMAIN
|
|
113
114
|
DOMAIN_LIST_FETCH_FAILED: { code: 'D001', message: 'Error when retrieving a domain list', httpCode: 500 },
|
|
114
115
|
DOMAIN_FETCH_FAILED: { code: 'D002', message: 'Error when retrieving a domain', httpCode: 500 },
|
package/constant/error.ts
CHANGED
|
@@ -113,6 +113,7 @@ export const ERRORS = {
|
|
|
113
113
|
INCORRECT_CREDENTIALS: { code: 'A002', message: 'Invalid email or password', httpCode: 400 },
|
|
114
114
|
ALREADY_REGISTERED: { code: 'A001', message: 'User already exists', httpCode: 409 },
|
|
115
115
|
INVALID_USER_TYPE: { code: 'A018', message: 'Invalid user type', httpCode: 400 },
|
|
116
|
+
TOO_MANY_REQUESTS: { code: 'A019', message: 'Too many requests', httpCode: 429 },
|
|
116
117
|
|
|
117
118
|
//DOMAIN
|
|
118
119
|
DOMAIN_LIST_FETCH_FAILED: { code: 'D001', message: 'Error when retrieving a domain list', httpCode: 500 },
|