haskell-servant / haskell-servant/servant

Content-type aware errors

Open
#353 5 comments 5 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.