Comment on Show HN: HTTP Status as a ServiceComments−tlrobinson8y require("express")().get("/:status", (req, res) => res.status(req.params.status).end()).listen(80)−brod8ygotta add a NaN check in there or it'll hang−abrkn8y require("express")().get("/:status", (req, res) => res.status(+req.params.status || 400).end()).listen(80)−kaoD8yYou just broke my HTTP status 0.
Comments
gotta add a NaN check in there or it'll hang
You just broke my HTTP status 0.