Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data ServantErr = ServantErr {
- errHTTPCode :: Int
- errReasonPhrase :: String
- errBody :: ByteString
- errHeaders :: [Header]
- setHeaders :: [Header] -> Response -> Response
- responseServantErr :: ServantErr -> Response
- throwError :: MonadSnap m => ServantErr -> m a
- err300 :: ServantErr
- err301 :: ServantErr
- err302 :: ServantErr
- err303 :: ServantErr
- err304 :: ServantErr
- err305 :: ServantErr
- err307 :: ServantErr
- err400 :: ServantErr
- err401 :: ServantErr
- err402 :: ServantErr
- err403 :: ServantErr
- err404 :: ServantErr
- err405 :: ServantErr
- err406 :: ServantErr
- err407 :: ServantErr
- err409 :: ServantErr
- err410 :: ServantErr
- err411 :: ServantErr
- err412 :: ServantErr
- err413 :: ServantErr
- err414 :: ServantErr
- err415 :: ServantErr
- err416 :: ServantErr
- err417 :: ServantErr
- err500 :: ServantErr
- err501 :: ServantErr
- err502 :: ServantErr
- err503 :: ServantErr
- err504 :: ServantErr
- err505 :: ServantErr
Documentation
data ServantErr Source #
ServantErr | |
|
Instances
Eq ServantErr Source # | |
Defined in Servant.Server.Internal.ServantErr (==) :: ServantErr -> ServantErr -> Bool # (/=) :: ServantErr -> ServantErr -> Bool # | |
Read ServantErr Source # | |
Defined in Servant.Server.Internal.ServantErr readsPrec :: Int -> ReadS ServantErr # readList :: ReadS [ServantErr] # readPrec :: ReadPrec ServantErr # readListPrec :: ReadPrec [ServantErr] # | |
Show ServantErr Source # | |
Defined in Servant.Server.Internal.ServantErr showsPrec :: Int -> ServantErr -> ShowS # show :: ServantErr -> String # showList :: [ServantErr] -> ShowS # |
throwError :: MonadSnap m => ServantErr -> m a Source #
Terminate request handling with a ServantErr
via finishWith
err300 :: ServantErr Source #
err301 :: ServantErr Source #
err302 :: ServantErr Source #
err303 :: ServantErr Source #
err304 :: ServantErr Source #
err305 :: ServantErr Source #
err307 :: ServantErr Source #
err400 :: ServantErr Source #
err401 :: ServantErr Source #
err402 :: ServantErr Source #
err403 :: ServantErr Source #
err404 :: ServantErr Source #
err405 :: ServantErr Source #
err406 :: ServantErr Source #
err407 :: ServantErr Source #
err409 :: ServantErr Source #
err410 :: ServantErr Source #
err411 :: ServantErr Source #
err412 :: ServantErr Source #
err413 :: ServantErr Source #
err414 :: ServantErr Source #
err415 :: ServantErr Source #
err416 :: ServantErr Source #
err417 :: ServantErr Source #
err500 :: ServantErr Source #
err501 :: ServantErr Source #
err502 :: ServantErr Source #
err503 :: ServantErr Source #
err504 :: ServantErr Source #
err505 :: ServantErr Source #