Unfortunately, res.send will override the status code and use 200 as a default. This may be a problem with legacy applications which do not pass the status code directly to res.send
While this is not a critical issue per se, since res.send could always be overridden through middleware, I think it is more correct to do this in restana package itself, especially since res.statusCode is 200 by default anyways
Consider this piece of code:
Unfortunately, res.send will override the status code and use 200 as a default. This may be a problem with legacy applications which do not pass the status code directly to res.send
While this is not a critical issue per se, since res.send could always be overridden through middleware, I think it is more correct to do this in restana package itself, especially since res.statusCode is 200 by default anyways