We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
errBody
defaultErrorFormatters.notFoundErrorFormatter
servant-server
1 parent 18b2ef4 commit 74a7d19Copy full SHA for 74a7d19
servant-server/src/Servant/Server/Internal/ErrorFormatter.hs
@@ -48,7 +48,7 @@ defaultErrorFormatters =
48
{ bodyParserErrorFormatter = err400Formatter
49
, urlParseErrorFormatter = err400Formatter
50
, headerParseErrorFormatter = err400Formatter
51
- , notFoundErrorFormatter = const err404
+ , notFoundErrorFormatter = const err404 {errBody = "404 Not Found"}
52
}
53
54
-- | A custom formatter for errors produced by parsing combinators like
0 commit comments