snap-predicates-0.3.0: Declarative routing for Snap.
Snap.Predicate.Error
Synopsis
data Error Source
The error type used as F meta-data in all snap predicates.
F
Constructors
Fields
(HTTP) status code
optional status message
Instances
err :: Word -> ByteString -> ErrorSource
Convenience function to construct Error values from status code and status message.
Error