Return custom HTTP Status Code with appDir server component #52796
Unanswered
ben519
asked this question in
App Router
Replies: 1 comment
-
Posted #53225 before working on it, can you confirm if this is what you are requesting? |
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
-
This question has been asked several times for specific use-cases
My specific use case:
In my case, when a user requests a page he doesn't have permission to view, I return a
<NotAuthorized />
component like soIn the case where I return the
<NotAuthorized />
component, I would love to issue a 401 Unauthorized HTTP Status Code.General Request
More generally, it'd be great if server components let me return any status code. Is this possible?
Beta Was this translation helpful? Give feedback.
All reactions