Custom 500 page #55498
Unanswered
mertafor
asked this question in
App Router
Custom 500 page
#55498
Replies: 3 comments
-
Yes, it seems like it is not possible unfortunately. It would be nice to have some way to catch errors while doing server rendering a return custom 500 screen with status 500 from server. It is not ideal that it return 200 and then can be handled only on client component. What are the plans for this ? I have seen several issues regarding this ... |
Beta Was this translation helpful? Give feedback.
0 replies
-
This is still an issue on May 7th 2024 |
Beta Was this translation helpful? Give feedback.
0 replies
-
This is still an issue on April 10th 2025 |
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
Uh oh!
There was an error while loading. Please reload this page.
-
I've been able to catch global errors by using global-error.tsx and catch all 404 errors through [...not-found]/page.tsx
However, I cannot see any solution for catching 500 errors and displaying a custom page. It's not being mentioned in documentation and I couldn't find any solutions on the net except pages/500.tsx, which shouldn't be the recommended solution because I don't use pages folder at all.
Is there a way to catch 500 and display a custom page?
Beta Was this translation helpful? Give feedback.
All reactions