TanStackT
TanStack14mo ago
6 replies
worthy-azure

How to handle server 500 error?

I want to show separate screen for 500 api response.

I made listner for listening for 404 response and when detected i just do:

        throw notFound({ routeId: '/_authorized/app' });


How i can do the same but with 500 api?
Was this page helpful?