EZP-22045: Ensure Symfony login is triggered when legacy sends 401 or 403 (legacy_mode: false)