Can an automation check if a link is dead

Would it be possible for an automation to automatically flag a link as dead if possible? for example if a link returns a 404 would it be possible to embed code that detects that and flag it in the airtable?