404 for 'Empty' Collections Webpages

Hi - I have some collection pages I use only for categorization purposes in the CMS and don’t want to build out webpages for these. Is there a way to set up 404 for these collection pages?

For example on Webflow’s website:

Add Elements panel | Webflow University ← valid page, but /category/ is a only used for categorization purpose

https://university.webflow.com/category/ ← server sends 404

I know I can do a 301 to the 404, but that’s not really good for SEO.

Any ideas?

Thanks in advance!

Hello.
404 errors are never good for SEO. If you want pages not to be indexed by Google than add a meta tag no index to the pages. <meta name="robots" content="noindex">