By default, go_router comes with default error screens for both MaterialApp and CupertinoApp as well as a default error screen in the case that none is used. You can also replace the default error screen by using the errorBuilder parameter:

GoRouter(
  /* ... */
  errorBuilder: (context, state) => ErrorScreen(state.error),
);