wai-predicates-0.8.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.

Instances

data Reason Source

Constructors

NotAvailable 
TypeError 

Instances

status :: Error -> Status Source

HTTP status code

message :: Error -> Maybe ByteString Source

optional status message

reason :: Error -> Maybe Reason Source

optional reason for this error

source :: Error -> Maybe ByteString Source

optional source of this erro

labels :: Error -> [ByteString] Source

optional free-text labels