Portability | |
---|---|
Stability | provisional |
Maintainer | diatchki@galois.com |
Safe Haskell | None |
- data StatusCode
- = OK
- | SeeOther
- | BadRequest
- | Forbidden
- | NotFound
- | Found
- | Conflict
- | InternalServerError
- | NotImplemented
- err_response :: BufferType a => StatusCode -> Response a
- respond :: BufferType a => StatusCode -> Response a
- reason :: StatusCode -> String
- statusCodeTriplet :: StatusCode -> (Int, Int, Int)
Documentation
data StatusCode Source
A list of status code. This not yet complete.
err_response :: BufferType a => StatusCode -> Response aSource
Make a simple response with the given status and body. Intended to be used for (bad) errors. Adds a close header.
respond :: BufferType a => StatusCode -> Response aSource
Make a simple response with the given status and body. No headers or body.
reason :: StatusCode -> StringSource
A brief description of what happend.
statusCodeTriplet :: StatusCode -> (Int, Int, Int)Source