Skip to content
  1. Home
  2. Error Handling
en-US
Select locale
system
Theme

Error handling

Choose a failure path

Compare HTTP response errors and runtime exceptions.

Open a case to inspect its status, loader behavior, and route boundary. Each example intentionally triggers a failure.

Choose a failure path.

Every route below demonstrates a different way the app can fail and how the route-level boundary reshapes that failure into something inspectable.

How the error routes work

The interesting split is between the static entry page, the dynamic route loader, and the boundary that formats both response errors and thrown exceptions.

Prerendered index

`/errors` is safe to prerender because it never throws.

Request-time loader

`/errors/:code` throws from the loader to simulate real failures.

Route boundary

The route boundary catches the failure and turns it into the final visual surface.