Commit Graph
3 Commits
Author SHA1 Message Date
Asher Gomez 7aec5a268e 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.
2025-04-27 20:01:31 +02:00
Marvin Hagemeister bd60444f7c fix: only generate stack on HttpError if status >= 500 (#2470) 2024-05-27 14:34:36 +02:00
Marvin Hagemeister 287929e4d2 major: import Fresh 2.0 code (#2449)
🎉
2024-05-24 09:40:08 +02:00