File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed
servant-server/src/Servant/Server/Internal Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change 1+ synopsis: Set `errBody` of `defaultErrorFormatters.notFoundErrorFormatter`
2+ packages: servant-server
3+ prs: #1843
4+ issues: #1790
5+ description: {
6+ Set `errBody` of `defaultErrorFormatters.notFoundErrorFormatter` to avoid an empty body.
7+ }
Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ defaultErrorFormatters =
4848 { bodyParserErrorFormatter = err400Formatter
4949 , urlParseErrorFormatter = err400Formatter
5050 , headerParseErrorFormatter = err400Formatter
51- , notFoundErrorFormatter = const err404
51+ , notFoundErrorFormatter = const err404 {errBody = " 404 Not Found " }
5252 }
5353
5454-- | A custom formatter for errors produced by parsing combinators like
You can’t perform that action at this time.
0 commit comments