When a user is invited to join the b2c tenant with an invitation link if the user tries to access that link it says that the link is expired as the expiry time is 24 hours.
Upon expiry user sees Microsoft Defined error page where it does not state that the link/ token has expired.
So, wanted to either redirect to custom error page or display a custom error page with proper messages.
How to show the custom error page in this scenario?
The eg. invitation link is here.