Skip to content

Commit 74a7d19

Browse files
committed
Set errBody of defaultErrorFormatters.notFoundErrorFormatter in servant-server (#1790)
1 parent 18b2ef4 commit 74a7d19

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

servant-server/src/Servant/Server/Internal/ErrorFormatter.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)