Safe Haskell | Safe-Inferred |
---|
- data Status = Status {}
- mkStatus :: Int -> ByteString -> Status
- status100 :: Status
- continue100 :: Status
- status101 :: Status
- switchingProtocols101 :: Status
- status200 :: Status
- ok200 :: Status
- status201 :: Status
- created201 :: Status
- status202 :: Status
- accepted202 :: Status
- status203 :: Status
- nonAuthoritative203 :: Status
- status204 :: Status
- noContent204 :: Status
- status205 :: Status
- resetContent205 :: Status
- status206 :: Status
- partialContent206 :: Status
- status300 :: Status
- multipleChoices300 :: Status
- status301 :: Status
- movedPermanently301 :: Status
- status302 :: Status
- found302 :: Status
- status303 :: Status
- seeOther303 :: Status
- status304 :: Status
- notModified304 :: Status
- status305 :: Status
- useProxy305 :: Status
- status307 :: Status
- temporaryRedirect307 :: Status
- status400 :: Status
- badRequest400 :: Status
- status401 :: Status
- unauthorized401 :: Status
- status402 :: Status
- paymentRequired402 :: Status
- status403 :: Status
- forbidden403 :: Status
- status404 :: Status
- notFound404 :: Status
- status405 :: Status
- methodNotAllowed405 :: Status
- status406 :: Status
- notAcceptable406 :: Status
- status407 :: Status
- proxyAuthenticationRequired407 :: Status
- status408 :: Status
- requestTimeout408 :: Status
- status409 :: Status
- conflict409 :: Status
- status410 :: Status
- gone410 :: Status
- status411 :: Status
- lengthRequired411 :: Status
- status412 :: Status
- preconditionFailed412 :: Status
- status413 :: Status
- requestEntityTooLarge413 :: Status
- status414 :: Status
- requestURITooLong414 :: Status
- status415 :: Status
- unsupportedMediaType415 :: Status
- status416 :: Status
- requestedRangeNotSatisfiable416 :: Status
- status417 :: Status
- expectationFailed417 :: Status
- status418 :: Status
- imATeaPot418 :: Status
- status428 :: Status
- preconditionRequired428 :: Status
- status429 :: Status
- tooManyRequests429 :: Status
- status431 :: Status
- requestHeaderFieldsTooLarge431 :: Status
- status500 :: Status
- internalServerError500 :: Status
- status501 :: Status
- notImplemented501 :: Status
- status502 :: Status
- badGateway502 :: Status
- status503 :: Status
- serviceUnavailable503 :: Status
- status504 :: Status
- gatewayTimeout504 :: Status
- status505 :: Status
- status511 :: Status
- networkAuthenticationRequired511 :: Status
- httpVersionNotSupported505 :: Status
- statusIsInformational :: Status -> Bool
- statusIsSuccessful :: Status -> Bool
- statusIsRedirection :: Status -> Bool
- statusIsClientError :: Status -> Bool
- statusIsServerError :: Status -> Bool
Documentation
HTTP Status.
Only the statusCode
is used for comparisons.
Please use mkStatus
to create status codes from code and message, or the Enum
instance or the
status code constants (like ok200
). There might be additional record members in the future.
Note that the Show instance is only for debugging.
mkStatus :: Int -> ByteString -> StatusSource
Create a Status from status code and message.
Continue 100
switchingProtocols101 :: StatusSource
Switching Protocols 101
Created 201
Accepted 202
nonAuthoritative203 :: StatusSource
Non-Authoritative Information 203
No Content 204
resetContent205 :: StatusSource
Reset Content 205
partialContent206 :: StatusSource
Partial Content 206
multipleChoices300 :: StatusSource
Multiple Choices 300
movedPermanently301 :: StatusSource
Moved Permanently 301
See Other 303
notModified304 :: StatusSource
Not Modified 304
Use Proxy 305
temporaryRedirect307 :: StatusSource
Temporary Redirect 307
Bad Request 400
unauthorized401 :: StatusSource
Unauthorized 401
paymentRequired402 :: StatusSource
Payment Required 402
Forbidden 403
Not Found 404
methodNotAllowed405 :: StatusSource
Method Not Allowed 405
notAcceptable406 :: StatusSource
Not Acceptable 406
proxyAuthenticationRequired407 :: StatusSource
Proxy Authentication Required 407
requestTimeout408 :: StatusSource
Request Timeout 408
Conflict 409
lengthRequired411 :: StatusSource
Length Required 411
preconditionFailed412 :: StatusSource
Precondition Failed 412
requestEntityTooLarge413 :: StatusSource
Request Entity Too Large 413
requestURITooLong414 :: StatusSource
Request-URI Too Long 414
unsupportedMediaType415 :: StatusSource
Unsupported Media Type 415
requestedRangeNotSatisfiable416 :: StatusSource
Requested Range Not Satisfiable 416
expectationFailed417 :: StatusSource
Expectation Failed 417
I'm a teapot 418
preconditionRequired428 :: StatusSource
Precondition Required 428 (RFC 6585)
tooManyRequests429 :: StatusSource
Too Many Requests 429 (RFC 6585)
requestHeaderFieldsTooLarge431 :: StatusSource
Request Header Fields Too Large 431 (RFC 6585)
internalServerError500 :: StatusSource
Internal Server Error 500
notImplemented501 :: StatusSource
Not Implemented 501
Bad Gateway 502
serviceUnavailable503 :: StatusSource
Service Unavailable 503
gatewayTimeout504 :: StatusSource
Gateway Timeout 504
networkAuthenticationRequired511 :: StatusSource
Network Authentication Required 511 (RFC 6585)
httpVersionNotSupported505 :: StatusSource
HTTP Version Not Supported 505
statusIsInformational :: Status -> BoolSource
Informational class
statusIsSuccessful :: Status -> BoolSource
Successful class
statusIsRedirection :: Status -> BoolSource
Redirection class
statusIsClientError :: Status -> BoolSource
Client Error class
statusIsServerError :: Status -> BoolSource
Server Error class