Password protect folder not working

I have turned on password protection for a folder and when I try to go to any of the pages in that folder, I get a 404 instead of seeing the enter password page.

I tried the suggestion of turning on site protection and turning it off but that didn’t help.

Any suggestions?

I believe that seeing a read-only site won’t help. Is that correct?

User-error, I hadn’t noticed that these pages were marked as draft, so that is why they were coming up as not available when I used their URLs.