Whitelabel Error Page

Hi,
I have followed the following URL to setup my OktaDeveloper account and ServiceProvider application/configuration for SAML2 integration.

https : // Get Started with Spring Boot and SAML | Okta Developer

When I access http : // localhost:8080, okta asks for login, once the login is successful I see following error shown


Whitelabel Error Page
This application has no explicit mapping for /error, so you are seeing this as a fallback.
Mon Aug 28 18:39:11 IST 2023
There was an unexpected error (type=Not Found, status=404).

It seems the SAML authentication is successful and while showing the page (may be home.html) it is failing, though I have templates/home.html, HomeController.java file. Do I need to configure anything on top?

The SpringBootSAML application log (excerpt) shows as follows

2023-08-28T18:39:09.179+05:30 DEBUG 31604 — [nio-8080-exec-7] o.s.s.web.DefaultRedirectStrategy : Redirecting to http : // localhost:8080/saml2/authenticate/okta
2023-08-28T18:39:09.189+05:30 DEBUG 31604 — [nio-8080-exec-8] o.s.security.web.FilterChainProxy : Securing GET /saml2/authenticate/okta
2023-08-28T18:39:11.462+05:30 DEBUG 31604 — [nio-8080-exec-9] o.s.security.web.FilterChainProxy : Securing POST /login/saml2/sso/okta
2023-08-28T18:39:11.470+05:30 DEBUG 31604 — [nio-8080-exec-9] .s.p.s.a.OpenSaml4AuthenticationProvider : Processing SAML response from http : // www.okta.com/exkaybwhkee3NY69b5d7
2023-08-28T18:39:11.476+05:30 DEBUG 31604 — [nio-8080-exec-9] .s.p.s.a.OpenSaml4AuthenticationProvider : Successfully processed SAML Response [id320227933509257031857964255]
2023-08-28T18:39:11.476+05:30 DEBUG 31604 — [nio-8080-exec-9] .s.ChangeSessionIdAuthenticationStrategy : Changed session id from 8AFF8F825A7738D02E5B01611AE8B2FD
2023-08-28T18:39:11.476+05:30 DEBUG 31604 — [nio-8080-exec-9] w.c.HttpSessionSecurityContextRepository : Stored SecurityContextImpl [Authentication=Saml2Authentication [Principal=org.springframework.security.saml2.provider.service.authentication.DefaultSaml2AuthenticatedPrincipal@3e91af0e, Credentials=[PROTECTED], Authenticated=true, Details=WebAuthenticationDetails [RemoteIpAddress=0:0:0:0:0:0:0:1, SessionId=8AFF8F825A7738D02E5B01611AE8B2FD], Granted Authorities=[ROLE_USER]]] to HttpSession [org.apache.catalina.session.StandardSessionFacade@33a7295f]
2023-08-28T18:39:11.477+05:30 DEBUG 31604 — [nio-8080-exec-9] .p.s.w.a.Saml2WebSsoAuthenticationFilter : Set SecurityContextHolder to Saml2Authentication [Principal=org.springframework.security.saml2.provider.service.authentication.DefaultSaml2AuthenticatedPrincipal@3e91af0e, Credentials=[PROTECTED], Authenticated=true, Details=WebAuthenticationDetails [RemoteIpAddress=0:0:0:0:0:0:0:1, SessionId=8AFF8F825A7738D02E5B01611AE8B2FD], Granted Authorities=[ROLE_USER]]
2023-08-28T18:39:11.477+05:30 DEBUG 31604 — [nio-8080-exec-9] o.s.s.web.DefaultRedirectStrategy : Redirecting to http : // localhost:8080/?continue
2023-08-28T18:39:11.486+05:30 DEBUG 31604 — [nio-8080-exec-5] o.s.security.web.FilterChainProxy : Securing GET /?continue
2023-08-28T18:39:11.486+05:30 DEBUG 31604 — [nio-8080-exec-5] w.c.HttpSessionSecurityContextRepository : Retrieved SecurityContextImpl [Authentication=Saml2Authentication [Principal=org.springframework.security.saml2.provider.service.authentication.DefaultSaml2AuthenticatedPrincipal@3e91af0e, Credentials=[PROTECTED], Authenticated=true, Details=WebAuthenticationDetails [RemoteIpAddress=0:0:0:0:0:0:0:1, SessionId=8AFF8F825A7738D02E5B01611AE8B2FD], Granted Authorities=[ROLE_USER]]]
2023-08-28T18:39:11.486+05:30 DEBUG 31604 — [nio-8080-exec-5] o.s.s.w.s.HttpSessionRequestCache : Loaded matching saved request http : // localhost:8080/?continue
2023-08-28T18:39:11.487+05:30 DEBUG 31604 — [nio-8080-exec-5] o.s.security.web.FilterChainProxy : Secured GET /?continue
2023-08-28T18:39:11.487+05:30 DEBUG 31604 — [nio-8080-exec-5] o.s.security.web.FilterChainProxy : Securing GET /error?continue
2023-08-28T18:39:11.487+05:30 DEBUG 31604 — [nio-8080-exec-5] w.c.HttpSessionSecurityContextRepository : Retrieved SecurityContextImpl [Authentication=Saml2Authentication [Principal=org.springframework.security.saml2.provider.service.authentication.DefaultSaml2AuthenticatedPrincipal@3e91af0e, Credentials=[PROTECTED], Authenticated=true, Details=WebAuthenticationDetails [RemoteIpAddress=0:0:0:0:0:0:0:1, SessionId=8AFF8F825A7738D02E5B01611AE8B2FD], Granted Authorities=[ROLE_USER]]]
2023-08-28T18:39:11.487+05:30 DEBUG 31604 — [nio-8080-exec-5] o.s.security.web.FilterChainProxy : Secured GET /error?continue

Any help is greately appreciated

Thanks