wai-predicates-0.4: WAI request predicates

Safe HaskellSafe-Inferred

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 -> ErrorSource

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