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

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

Fast, minimalist web framework for Deno ported from ExpressJS.
Very Popular
Go to Latest
method Response.prototype.sendStatus
import { Response } from "https://deno.land/x/opine@2.2.0/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);

Returns

this

for chaining