Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/opine/src/response.ts>Response#setStatus

Minimalist web framework for Deno ported from ExpressJS.
Latest
method Response.prototype.setStatus
import { Response } from "https://deno.land/x/opine@2.3.4/src/response.ts";

Set status code.

This method deviates from Express due to the naming clash with Deno.OpineResponse status property.

Parameters

code: Status

Returns

this

for chaining