wai-predicates-0.4: WAI request predicates

Safe HaskellSafe-Inferred
LanguageHaskell2010

Network.Wai.Predicate.Error

Synopsis

Documentation

data Error Source

The error type used as meta-data for Fail in all WAI predicates.

Constructors

Error 

Fields

status :: !Status

HTTP status code

message :: Maybe ByteString

optional status message

Instances

err :: Status -> ByteString -> Error Source

Convenience function to construct Error values from status code and body message.