updated response code to 503 for disabled publishing

This commit is contained in:
bill bittner 2018-06-23 13:53:35 -07:00
parent f9db87109c
commit 391592f1b8

View file

@ -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
});