wai-predicates-0.10.0: WAI request predicates

Safe HaskellSafe
LanguageHaskell2010

Network.Wai.Predicate.Error

Synopsis

Documentation

data Error Source #

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

Instances

Eq Error Source # 

Methods

(==) :: Error -> Error -> Bool #

(/=) :: Error -> Error -> Bool #

Show Error Source # 

Methods

showsPrec :: Int -> Error -> ShowS #

show :: Error -> String #

showList :: [Error] -> ShowS #

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