I'm almost 40 and are constantly getting harassed by recruiters.
My mate in his 60s not long ago got hired for a software developer role, and easily at that. Two interviews and he got an offer.
Another mate near 40 stepped back from manager type role into a developer role, and his age is not an issue.