Hoogle Search
Within LTS Haskell 24.38 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
type
DefaultErrorFormatters = '[ErrorFormatters]servant-server Servant.Server.Internal.ErrorFormatter Context that contains default error formatters.
type
ErrorFormatter = TypeRep -> Request -> String -> ServerErrorservant-server Servant.Server.Internal.ErrorFormatter A custom formatter for errors produced by parsing combinators like ReqBody or Capture. A TypeRep argument described the concrete combinator that raised the error, allowing formatter to customize the message for different combinators. A full Request is also passed so that the formatter can react to Accept header, for example.
-
servant-server Servant.Server.Internal.ErrorFormatter A collection of error formatters for different situations. If you need to override one of them, use defaultErrorFormatters with record update syntax.
-
servant-server Servant.Server.Internal.ErrorFormatter No documentation available.
type
MkContextWithErrorFormatter (ctx :: [Type]) = ctx .++ DefaultErrorFormattersservant-server Servant.Server.Internal.ErrorFormatter No documentation available.
type
NotFoundErrorFormatter = Request -> ServerErrorservant-server Servant.Server.Internal.ErrorFormatter This formatter does not get neither TypeRep nor error message.
bodyParserErrorFormatter :: ErrorFormatters -> ErrorFormatterservant-server Servant.Server.Internal.ErrorFormatter Format error from parsing the request body.
defaultErrorFormatters :: ErrorFormattersservant-server Servant.Server.Internal.ErrorFormatter Default formatters will just return HTTP 400 status code with error message as response body.
headerParseErrorFormatter :: ErrorFormatters -> ErrorFormatterservant-server Servant.Server.Internal.ErrorFormatter Format error from parsing request headers.
-
servant-server Servant.Server.Internal.ErrorFormatter No documentation available.