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

std/http/status.ts>isStatus

Deno standard library
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
function isStatus
import { isStatus } from "https://deno.land/std@0.220.0/http/status.ts";

Returns whether the provided number is a valid HTTP status code.

Parameters

status: number