Trying to set up 410s for specific pages

Is there any way to setup 410 response codes for specific URLs?

I’m in the process of moving an old website over to Webflow, which is a great platform, but there isn’t a way to kill off old pages using a 410 http response code. If a page doesn’t exist on the new site, it simply returns a 404.

The “HTTP Response Header Modification” transform rules allow me to change the status to “410 gone” but the actual http response code is still whatever it was before (200/404/etc).

The only thing that I can think of would be using workers to rewrite a new response with a new status code of 410.

1 Like