Error handling non 500 errors #54595
Unanswered
danieljee
asked this question in
App Router
Replies: 1 comment
-
We need a way to differentiate between different types of errors. This "security feature" is not useful |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Next.JS Version = 13.4.13
I'm wondering if there is a way for error.tsx to differentiate different types of server-side errors.
For example, if I have a server side component like this:
If the api's response is 404, I can display not-found.tsx to the end user. However for all other errors, I'm displaying error.tsx which only shows 500 internal error.
Is there a way to display different status code + message to the end user?
Beta Was this translation helpful? Give feedback.
All reactions