Streaming live at 10am (PST)

Automatic 301 redirect for archived items

I have a JobBoard built in Webflow. From time to time I archive old jobs.

But at the moment of archiving these jobs, they are still shown in the SERPS on Google and people clicking on it are landing on a 404 page.

Is there a way to automatically (or with API / Custom Code) redirect these “old” URLS to the overall landing page of the job board?