wai-predicates-0.7: 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.

Instances

data Reason Source

Constructors

NotAvailable 
TypeError 

Instances

status :: Error -> StatusSource

HTTP status code

message :: Error -> Maybe ByteStringSource

optional status message

reason :: Error -> Maybe ReasonSource

optional reason for this error

source :: Error -> Maybe ByteStringSource

optional source of this erro

labels :: Error -> [ByteString]Source

optional free-text labels