I came here to say this. Yes I know
https://no-www.org/ is a thing, but browsers have a ctrl+enter shortcut that'll top and tail the domain with
https://www. and .com - having that go to an error page is not great particularly given the reason to do it was partially ease of access by customers.