Nikita
Nikita

Reputation: 13

React error page return status code 200, how can i fix it and show 404 page*

I'm creating spa application, using react. Whe i have url which is not in base of routes, I'm redirectng client into error page and showing him information that this is 404 page and current url is not working. But when this page is opened, Status code of this page is 200, but should be 404. As i understood, display 200 status code on 404 page is bad for seo optimization. How can I return 404 status code, when I'm opening 404 page?

Upvotes: 0

Views: 1291

Answers (0)

Related Questions