refactor(core): standardize HttpError (#2858)

- Now extends `Error`, so that it satisfies `instanceof Error`
operations.
- Narrows the `status` property to be an actual HTTP status code.
- Outsources default evaluation of the `message` property to
`@std/http/status`, which already implements this functionality.
- Brings the `stack` property to the class, regardless of its status,
which seems like a needless constraint.
This commit is contained in:
Asher Gomez
2025-04-27 20:01:31 +02:00
committed by GitHub
parent 5876ca7752
commit 7aec5a268e
4 changed files with 39 additions and 1638 deletions
Generated
+25 -1489
View File
File diff suppressed because it is too large Load Diff