Saml2

Hi All,

Currently we are using AM as IDP and xyz app as SP.We have done a SAML federation between them.
When the xyz app launch application page xyz.abc.com --the page will be redirect to FR AUth journey page with the saml fedrated.If the user doesnt login for about 15 mins the page will give an error server error unexpected error due to login.

Can you please suggest how to tackle the below scenrio

1)How we can provide a proper error messgae as invalid session message and asking them to redirect to applciation login URL.
2)how to configure the SAML error in this scenrio.