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

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

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

Send given HTTP status code.

Sets the response status to code and the body of the response to the standard description from deno's http_status.STATUS_TEXT or the code number if no description.

Examples:

res.sendStatus(200);

Parameters

code: Status

Returns

this

for chaining