Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
Web.Hyperbole.Types.Response
Synopsis
- data Body = Body
- data Response
- = Response TargetViewId (View Body ())
- | Redirect URI
- | Err ResponseError
- data ResponseError
- data ServerError = ServerError {}
Documentation
A processed response for the client, which might be a ResponseError
Constructors
Response TargetViewId (View Body ()) | |
Redirect URI | |
Err ResponseError |
data ResponseError Source #
Constructors
NotFound | |
ErrParse String | |
ErrQuery String | |
ErrSession Text String | |
ErrServer Text | |
ErrCustom ServerError | |
ErrInternal | |
ErrNotHandled (Event TargetViewId Encoded) | |
ErrAuth Text |
Instances
IsString ResponseError Source # | |
Defined in Web.Hyperbole.Types.Response Methods fromString :: String -> ResponseError # | |
Show ResponseError Source # | |
Defined in Web.Hyperbole.Types.Response Methods showsPrec :: Int -> ResponseError -> ShowS # show :: ResponseError -> String # showList :: [ResponseError] -> ShowS # |
data ServerError Source #