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:
Marvin Hagemeister
2026-03-26 09:10:21 +01:00
committed by GitHub
co-authored by Bartek Iwańczuk
parent 0fff2b04da
commit 882b7829fd
4 changed files with 18 additions and 5 deletions
+2
View File
@@ -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: