Skip to main content
Deno 2 is finally here 🎉️
Learn more
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
function createCommonResponse
import { createCommonResponse } from "https://deno.land/std@0.202.0/http/util.ts";

Internal utility for returning a standardized response, automatically defining the body, status code and status text, according to the response type.

Parameters

status: Status
optional
body: BodyInit | null
optional
init: ResponseInit