Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

std/http/mod.ts>errors

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

A map of HttpErrors that are unique instances for each HTTP error status code.

Example

import { errors } from "https://deno.land/std@0.164.0/http/http_errors.ts";

throw new errors.InternalServerError("Ooops!");

type

Record<ErrorStatusKeys, HttpError>