Skip to main content
Module

std/http/http_errors.ts>errors

Deno standard library
Go to Latest
variable errors
import { errors } from "https://deno.land/std@0.152.0/http/http_errors.ts";

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

Example

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

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

type

Record<ErrorStatusKeys, HttpError>