set error handler
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
exports.constants = {
|
||||
VALIDATION_ERROR: 400,
|
||||
UNAUTHORIZED: 401,
|
||||
FORBIDOEN: 403,
|
||||
NOT_FOUND: 404,
|
||||
SERVER_ERROR: 500,
|
||||
SITE_UNAUTHORIZED: 422,
|
||||
TOO_MANY: 429,
|
||||
Method_Not_Allowed:405
|
||||
};
|
||||
Reference in New Issue
Block a user