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.
Properties
error: HttpErrorOptions & T
Static Methods
toError<T extends Record<string, unknown> = Record<string, unknown>>(response: ErrorResponse<T>): HttpError<T>
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.