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

x/udibo_react_app/mod.tsx>ErrorResponse

A React Framework for Deno that makes it easy to create highly interactive apps that have server side rendering with file based routing for both your UI and API.
Go to Latest
class ErrorResponse
implements ErrorResponse<T>
Re-export
import { ErrorResponse } from "https://deno.land/x/udibo_react_app@0.16.0/mod.tsx";

Converts errors into error responses that the client can convert back into HttpErrors.

Constructors

new
ErrorResponse(error: unknown)

Type Parameters

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

Static Methods

toError<T extends Record<string, unknown> = Record<string, unknown>>(response: ErrorResponse<T>): HttpError<T>
interface ErrorResponse
Re-export
import { type ErrorResponse } from "https://deno.land/x/udibo_react_app@0.16.0/mod.tsx";

A format for sharing errors with the browser. With a consistent format for error responses, the client can convert them back into an HttpErrors.

Type Parameters

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