I do not think this is related to React, but in fact in any environment.
I think this document will help you answer your own question:
https://www.joyent.com/developers/node/design/errors
However, you should check out these (insufficiently) well-known rules from the Java world:
React , http, http. React HTML, catch. , .
, , , , , (.. w have have httpError). , , . , res.send(undefined);, , , , , , - .
, , . , . - :
if ( ValidPaths.contains(path) ) {
render()
} else {
res.send(404)
}
, , , - stacktrace. DOS, . . , DOS, :)
, , Javascript - : (