diff --git a/functions/zoho_analytics_datastore_sync_routes_handler/index.js b/functions/zoho_analytics_datastore_sync_routes_handler/index.js index 1ed20e3..1af4f3b 100644 --- a/functions/zoho_analytics_datastore_sync_routes_handler/index.js +++ b/functions/zoho_analytics_datastore_sync_routes_handler/index.js @@ -21,7 +21,7 @@ app.use((req, res, next) => { } } else { if (!AuthService.getInstance().isValidRequest(req.get(AppConstants.Headers.CodelibSecretKey))) { - throw new AppError(401, "You don't have permission to perform this operation. Kindly contact your administrator for more details.") + throw new AppError(null, "You don't have permission to perform this operation. Kindly contact your administrator for more details.") } } next()