From 391592f1b8b9434143fe85c741b5f56bf4bcadf3 Mon Sep 17 00:00:00 2001 From: bill bittner Date: Sat, 23 Jun 2018 13:53:35 -0700 Subject: [PATCH] updated response code to 503 for disabled publishing --- server/controllers/api/claim/publish/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/controllers/api/claim/publish/index.js b/server/controllers/api/claim/publish/index.js index bb3890e1..7d42106a 100644 --- a/server/controllers/api/claim/publish/index.js +++ b/server/controllers/api/claim/publish/index.js @@ -24,13 +24,13 @@ const authenticateUser = require('./authentication.js'); const claimPublish = ({ body, files, headers, ip, originalUrl, user }, res) => { // logging logger.info('PUBLISH REQUEST:', { - headers, ip, + headers, body, }); // check for disabled publishing if (disabled) { - return res.status(400).json({ + return res.status(503).json({ success: false, message: disabledMessage });