DEV Community

Discussion on: FullStack - How to create a working blogging website with pure HTML, CSS and JS in 2021.

Collapse
 
ats1999 profile image
Rahul kumar

it would be more declarative if you change res.json("404"); with res.status(404).send("...");

github.com/kunaal438/blogging-site...

Collapse
 
themodernweb profile image
Modern Web

Yes actually we can change the status but this tutorial was not about "404" error that's why I left it.

Collapse
 
ats1999 profile image
Rahul kumar

It's a basics coding practice, which every developer should follow either for teaching or development.

Thread Thread
 
themodernweb profile image
Modern Web

Yes, I agree. I'll make sure to return status code also from the next time☺️

Some comments have been hidden by the post's author - find out more