- data Status
- = Continue
- | SwitchingProtocols
- | OK
- | Created
- | Accepted
- | NonAuthoritativeInformation
- | NoContent
- | ResetContent
- | PartialContent
- | MultipleChoices
- | MovedPermanently
- | Found
- | SeeOther
- | NotModified
- | UseProxy
- | TemporaryRedirect
- | BadRequest
- | Unauthorized
- | PaymentRequired
- | Forbidden
- | NotFound
- | MethodNotAllowed
- | NotAcceptable
- | ProxyAuthenticationRequired
- | RequestTimeOut
- | Conflict
- | Gone
- | LengthRequired
- | PreconditionFailed
- | RequestEntityTooLarge
- | RequestURITooLarge
- | UnsupportedMediaType
- | RequestedRangeNotSatisfiable
- | ExpectationFailed
- | InternalServerError
- | NotImplemented
- | BadGateway
- | ServiceUnavailable
- | GatewayTimeOut
- | HTTPVersionNotSupported
- | CustomStatus Int String
- statusCodes :: Bimap Int Status
- statusFailure :: Status -> Bool
- statusFromCode :: Int -> Status
- codeFromStatus :: Status -> Int
Documentation
HTTP status codes.
Continue | 100 |
SwitchingProtocols | 101 |
OK | 200 |
Created | 201 |
Accepted | 202 |
NonAuthoritativeInformation | 203 |
NoContent | 204 |
ResetContent | 205 |
PartialContent | 206 |
MultipleChoices | 300 |
MovedPermanently | 301 |
Found | 302 |
SeeOther | 303 |
NotModified | 304 |
UseProxy | 305 |
TemporaryRedirect | 307 |
BadRequest | 400 |
Unauthorized | 401 |
PaymentRequired | 402 |
Forbidden | 403 |
NotFound | 404 |
MethodNotAllowed | 405 |
NotAcceptable | 406 |
ProxyAuthenticationRequired | 407 |
RequestTimeOut | 408 |
Conflict | 409 |
Gone | 410 |
LengthRequired | 411 |
PreconditionFailed | 412 |
RequestEntityTooLarge | 413 |
RequestURITooLarge | 414 |
UnsupportedMediaType | 415 |
RequestedRangeNotSatisfiable | 416 |
ExpectationFailed | 417 |
InternalServerError | 500 |
NotImplemented | 501 |
BadGateway | 502 |
ServiceUnavailable | 503 |
GatewayTimeOut | 504 |
HTTPVersionNotSupported | 505 |
CustomStatus Int String |
statusCodes :: Bimap Int StatusSource
RFC2616 sec6.1.1 Status Code and Reason Phrase.
Bidirectional mapping from status numbers to codes.
statusFailure :: Status -> BoolSource
Every status greater-than or equal to 400 is considered to be a failure.
statusFromCode :: Int -> StatusSource
Conversion from status numbers to codes.
codeFromStatus :: Status -> IntSource
Conversion from status codes to numbers.