News for hackers. Stuff that matters.
Re:Show HN: HTTP Status as a Service by tlrobinson on Tuesday June 05, 2018 @01:49AM (#17235254)

    require("express")().get("/:status", (req, res) => res.status(req.params.status).end()).listen(80)
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
Re:Show HN: HTTP Status as a Service by abrkn on Tuesday June 05, 2018 @05:33AM (#17236127)

        require("express")().get("/:status", (req, res) => res.status(+req.params.status || 400).end()).listen(80)
Re:Show HN: HTTP Status as a Service by kaoD on Tuesday June 05, 2018 @07:21AM (#17236638)
You just broke my HTTP status 0.