When forced authentication is enabled, a database migration is in progress and you are not logged in, it's impossible to get system status, i.e. see maintenance/setup pages. All WS calls to /api/system/status and /api/system/db_migration_status fail with 401 Unauthorized error.