updated response code to 503 for disabled publishing
This commit is contained in:
parent
f9db87109c
commit
391592f1b8
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
});
|
||||
|
|
Loading…
Add table
Reference in a new issue