set error handler

This commit is contained in:
Mr Swift
2024-08-11 18:26:18 +03:30
parent 648acf59aa
commit 9769e2cf63
3 changed files with 85 additions and 0 deletions
+10
View File
@@ -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
};