diff --git a/services/web/app/src/router.js b/services/web/app/src/router.js index ba4d7706ae..5465d1b307 100644 --- a/services/web/app/src/router.js +++ b/services/web/app/src/router.js @@ -1212,7 +1212,9 @@ function initialize(webRouter, privateApiRouter, publicApiRouter) { }) publicApiRouter.get('/status', (req, res) => { - if (!Settings.siteIsOpen) { + if (Settings.shuttingDown) { + res.sendStatus(503) // Service unavailable + } else if (!Settings.siteIsOpen) { plainTextResponse(res, 'web site is closed (web)') } else if (!Settings.editorIsOpen) { plainTextResponse(res, 'web editor is closed (web)')