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

x/fsrouter/deps.ts>http.errors

A file system based router for Deno.
Go to Latest
variable http.errors
import { http } from "https://deno.land/x/fsrouter@2.11.1/deps.ts";
const { errors } = http;

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

Example

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

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

type

Record<ErrorStatusKeys, HttpError>