Feature Request: Support serviceUnavailable() function for 503 errors in Next.js #77065
Unanswered
hamzamongam
asked this question in
App Router
Replies: 2 comments 1 reply
-
any updates |
Beta Was this translation helpful? Give feedback.
0 replies
-
We came across the same thing in our projects and would love the find a solution for handling 50x errors.
|
Beta Was this translation helpful? Give feedback.
1 reply
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.
-
In Next.js, notFound() is available to handle 404 errors, but there's no built-in function like serviceUnavailable() for handling 503 errors.
Problem:
Proposal:
Example:
This would improve error handling consistency and allow more granular control over HTTP responses.
Beta Was this translation helpful? Give feedback.
All reactions