Prerendering tag helper should support setting HTTP status codes #1024

Closed
opened 2025-08-09 17:18:35 +00:00 by fergalmoran · 0 comments
Owner

Originally created by @TE2s on 2/13/2017

Is it possible to return a 404 status code for a specific route?

Right now I have my router set up with this as the last route:
<Route onEnter={listen} path="*" components={{body: NotFound}} status={404} />
however, if I hit the route it is coming back as a 200. Is there a way to set up the prerendering to return a 404 status code for this route?

*Originally created by @TE2s on 2/13/2017* Is it possible to return a 404 status code for a specific route? Right now I have my router set up with this as the last route: `<Route onEnter={listen} path="*" components={{body: NotFound}} status={404} /> ` however, if I hit the route it is coming back as a 200. Is there a way to set up the prerendering to return a 404 status code for this route?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/JavaScriptServices#1024
No description provided.