Next.js Discord

Discord Forum

Throwing error client side

Unanswered
Western yellowjacket posted this in #help-forum
Open in Discord
Western yellowjacketOP
I want to present the error.js page when the user makes a request to an API but fails with 401.

I'm doing throw Error() when that happens, but for some reason, its presenting the default nextjs error modal.

0 Replies