feat: expose HttpError for clients (#3080)
This PR exposes the `HttpError` class for clients. To do that I needed to make the error message optional to avoid bloating up the bundle with lots of status strings. Fixes https://github.com/denoland/fresh/issues/2995 --------- Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
This commit is contained in:
co-authored by
Bartek Iwańczuk
parent
0fff2b04da
commit
882b7829fd
@@ -2,6 +2,8 @@ import type { ComponentChildren, VNode } from "preact";
|
||||
import { BUILD_ID } from "@fresh/build-id";
|
||||
import { assetInternal, assetSrcSetInternal } from "./shared_internal.ts";
|
||||
|
||||
export { HttpError } from "../error.ts";
|
||||
|
||||
/**
|
||||
* Returns true when the current runtime is the browser and false otherwise. This is used for guard runtime-dependent code.
|
||||
* Shorthand for the following:
|
||||
|
||||
Reference in New Issue
Block a user