haskell-servant / haskell-servant/servant
Content-type aware errors
Open
enhancement
servant-server
- Dominant language
- Haskell
- Stars
- 2k
- Forks
- 427
- Avg merge
- 2d 23h
- Merged PRs (30d)
- 5
Description
Combinators should return `ServantErr`s that match the `Accept` header when possible. I'd think we can make a datatype for the error, and have the `Config` contain functions from the datatype and content-type to `ServantErr`, so e.g. HTML 404 pages are customizable.
Contributor guide
Assessment
This issue has not been assessed yet.