General_ErrorRequest theming

Any Idea on how to catch General_ErrorRequest ? My goal is to customize the output message inside my custom theme.
Need to test if SSO has expired. Then inviting the user to reload the page. :thinking: