Monday 5 June 2017

Getting/reading res.status() value from Express server response

We can the response code with:

res.status(v);

but later on for the same request, how can we check to see if it has been set? I am looking at the Express docs and not seeing how to do something like:

res.getStatus() // => 500

This maybe should be easier than it is lol idk.



via Alexander Mills

No comments:

Post a Comment