Re:Show HN: HTTP Status as a Service
by brod on Tuesday June 05, 2018 @04:03AM
(#17235762)
gotta add a NaN check in there or it'll hang
[ Parent
| on HN ]
require("express")().get("/:status", (req, res) => res.status(+req.params.status || 400).end()).listen(80)