When an error occurs during the sign-in flow, Okta can display a custom error page to users that's consistent with your custom sign-in page and URL domain. Use the embedded code editor to get started.
In the Admin Console, go to Customizations > Branding.
In the Error Pages section, click Edit.
To open the code editor, turn on the toggle next to Code editor.
For detailed information on usage and set up, see the Customize the Hosted Error Pages guide.