wai-predicates-1.0.0: 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

Instances details
Eq Error Source # 
Instance details

Defined in Network.Wai.Predicate.Error

Methods

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

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

Show Error Source # 
Instance details

Defined in Network.Wai.Predicate.Error

Methods

showsPrec :: Int -> Error -> ShowS #

show :: Error -> String #

showList :: [Error] -> ShowS #

data Reason Source #

Constructors

NotAvailable 
TypeError 

Instances

Instances details
Eq Reason Source # 
Instance details

Defined in Network.Wai.Predicate.Error

Methods

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

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

Show Reason Source # 
Instance details

Defined in Network.Wai.Predicate.Error

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