Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions changelog.d/pr-1843
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
synopsis: Set `errBody` of `defaultErrorFormatters.notFoundErrorFormatter`
packages: servant-server
prs: #1843
issues: #1790
description: {
Set `errBody` of `defaultErrorFormatters.notFoundErrorFormatter` to avoid an empty body.
}
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ defaultErrorFormatters =
{ bodyParserErrorFormatter = err400Formatter
, urlParseErrorFormatter = err400Formatter
, headerParseErrorFormatter = err400Formatter
, notFoundErrorFormatter = const err404
, notFoundErrorFormatter = const err404{errBody = "404 Not Found"}
}

-- | A custom formatter for errors produced by parsing combinators like
Expand Down
Loading