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

x/udibo_react_app/app.tsx>HttpError.from

A React Framework for Deno
Go to Latest
method HttpError.from
Re-export
import { HttpError } from "https://deno.land/x/udibo_react_app@0.1.2/app.tsx";

Converts any HttpError like objects into an HttpError. If the object is already an instance of HttpError, it will be returned as is.

Type Parameters

optional
T extends Record<string, unknown> = Record<string, unknown>

Parameters

error: HttpError<T> | Error | unknown