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 =
48
48
{ bodyParserErrorFormatter = err400Formatter
49
49
, urlParseErrorFormatter = err400Formatter
50
50
, headerParseErrorFormatter = err400Formatter
51
- , notFoundErrorFormatter = const err404
51
+ , notFoundErrorFormatter = const err404{errBody = " 404 Not Found " }
52
52
}
53
53
54
54
-- | A custom formatter for errors produced by parsing combinators like
You can’t perform that action at this time.
0 commit comments