|
Network.HTTP.Lucu.Response |
|
|
Description |
Definition of things related on HTTP response.
|
|
Synopsis |
|
|
|
Documentation |
|
|
This is the definition of HTTP status code.
Network.HTTP.Lucu.Resource.setStatus accepts these named statuses
so you don't have to memorize, for instance, that "Gateway
Timeout" is 504.
| Constructors | Continue | | SwitchingProtocols | | Processing | | Ok | | Created | | Accepted | | NonAuthoritativeInformation | | NoContent | | ResetContent | | PartialContent | | MultiStatus | | MultipleChoices | | MovedPermanently | | Found | | SeeOther | | NotModified | | UseProxy | | TemporaryRedirect | | BadRequest | | Unauthorized | | PaymentRequired | | Forbidden | | NotFound | | MethodNotAllowed | | NotAcceptable | | ProxyAuthenticationRequired | | RequestTimeout | | Conflict | | Gone | | LengthRequired | | PreconditionFailed | | RequestEntityTooLarge | | RequestURITooLarge | | UnsupportedMediaType | | RequestRangeNotSatisfiable | | ExpectationFailed | | UnprocessableEntitiy | | Locked | | FailedDependency | | InternalServerError | | NotImplemented | | BadGateway | | ServiceUnavailable | | GatewayTimeout | | HttpVersionNotSupported | | InsufficientStorage | |
| Instances | |
|
|
|
isInformational sc is True iff sc < 200.
|
|
|
isSuccessful sc is True iff 200 <= sc < 300.
|
|
|
isRedirection sc is True iff 300 <= sc < 400.
|
|
|
isError sc is True iff 400 <= sc
|
|
|
isClientError sc is True iff 400 <= sc < 500.
|
|
|
isServerError sc is True iff 500 <= sc.
|
|
|
statusCode sc returns an unboxed tuple of numeric and textual
representation of sc.
|
|
Produced by Haddock version 2.4.2 |