I’ll admit, I’ve never been banned, so idk what it looks like when you try to log in or do something.
HN used to shadowban (i.e. ban people without telling them), but it led to a lot of resentment, not just from the banned users but from many community members who don't think that's fair. At the time, there wasn't much of an alternative because HN had one moderator (pg) and he was also working on YC and raising small children. It takes a ton of time and energy to write such comments and to engage with user responses about them.
We still use shadowbanning when accounts are new and show signs of spamming or trolling: https://hn.algolia.com/?dateRange=all&page=0&prefix=true&que....
p.s. Banning mostly just means that your posts are autokilled. They're still visible to anyone with 'showdead' set to 'yes' in their profile.
https://news.ycombinator.com/newsguidelines.html