import { HTTPResponse } from "https://deno.land/x/ghst@v1.1.4/res.ts";
Sets the status code of the response.
Examples
const ghst = new GhstApplication({
on404: (req,res) => {
res.setStatus(404).send("404");
}
});
const ghst = new GhstApplication({ on404: (req,res) => { res.setStatus(404).send("404"); } });