http-types-0.11: Generic HTTP types for Haskell (for both client and server code).

Safe HaskellSafe
LanguageHaskell98

Network.HTTP.Types.Status

Synopsis

Documentation

data Status Source #

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.

Constructors

Status 

mkStatus :: Int -> ByteString -> Status Source #

Create a Status from status code and message.

status100 :: Status Source #

Continue 100

continue100 :: Status Source #

Continue 100

status101 :: Status Source #

Switching Protocols 101

switchingProtocols101 :: Status Source #

Switching Protocols 101

ok200 :: Status Source #

OK 200

status201 :: Status Source #

Created 201

created201 :: Status Source #

Created 201

status202 :: Status Source #

Accepted 202

accepted202 :: Status Source #

Accepted 202

status203 :: Status Source #

Non-Authoritative Information 203

nonAuthoritative203 :: Status Source #

Non-Authoritative Information 203

status204 :: Status Source #

No Content 204

noContent204 :: Status Source #

No Content 204

status205 :: Status Source #

Reset Content 205

resetContent205 :: Status Source #

Reset Content 205

status206 :: Status Source #

Partial Content 206

partialContent206 :: Status Source #

Partial Content 206

status300 :: Status Source #

Multiple Choices 300

multipleChoices300 :: Status Source #

Multiple Choices 300

status301 :: Status Source #

Moved Permanently 301

movedPermanently301 :: Status Source #

Moved Permanently 301

status302 :: Status Source #

Found 302

found302 :: Status Source #

Found 302

status303 :: Status Source #

See Other 303

seeOther303 :: Status Source #

See Other 303

status304 :: Status Source #

Not Modified 304

notModified304 :: Status Source #

Not Modified 304

status305 :: Status Source #

Use Proxy 305

useProxy305 :: Status Source #

Use Proxy 305

status307 :: Status Source #

Temporary Redirect 307

temporaryRedirect307 :: Status Source #

Temporary Redirect 307

status308 :: Status Source #

Permanent Redirect 308

permanentRedirect308 :: Status Source #

Permanent Redirect 308

status400 :: Status Source #

Bad Request 400

badRequest400 :: Status Source #

Bad Request 400

status401 :: Status Source #

Unauthorized 401

unauthorized401 :: Status Source #

Unauthorized 401

status402 :: Status Source #

Payment Required 402

paymentRequired402 :: Status Source #

Payment Required 402

status403 :: Status Source #

Forbidden 403

forbidden403 :: Status Source #

Forbidden 403

status404 :: Status Source #

Not Found 404

notFound404 :: Status Source #

Not Found 404

status405 :: Status Source #

Method Not Allowed 405

methodNotAllowed405 :: Status Source #

Method Not Allowed 405

status406 :: Status Source #

Not Acceptable 406

notAcceptable406 :: Status Source #

Not Acceptable 406

status407 :: Status Source #

Proxy Authentication Required 407

proxyAuthenticationRequired407 :: Status Source #

Proxy Authentication Required 407

status408 :: Status Source #

Request Timeout 408

requestTimeout408 :: Status Source #

Request Timeout 408

status409 :: Status Source #

Conflict 409

conflict409 :: Status Source #

Conflict 409

gone410 :: Status Source #

Gone 410

status411 :: Status Source #

Length Required 411

lengthRequired411 :: Status Source #

Length Required 411

status412 :: Status Source #

Precondition Failed 412

preconditionFailed412 :: Status Source #

Precondition Failed 412

status413 :: Status Source #

Request Entity Too Large 413

requestEntityTooLarge413 :: Status Source #

Request Entity Too Large 413

status414 :: Status Source #

Request-URI Too Long 414

requestURITooLong414 :: Status Source #

Request-URI Too Long 414

status415 :: Status Source #

Unsupported Media Type 415

unsupportedMediaType415 :: Status Source #

Unsupported Media Type 415

status416 :: Status Source #

Requested Range Not Satisfiable 416

requestedRangeNotSatisfiable416 :: Status Source #

Requested Range Not Satisfiable 416

status417 :: Status Source #

Expectation Failed 417

expectationFailed417 :: Status Source #

Expectation Failed 417

status418 :: Status Source #

I'm a teapot 418

imATeapot418 :: Status Source #

I'm a teapot 418

status422 :: Status Source #

Unprocessable Entity 422 (RFC 4918)

unprocessableEntity422 :: Status Source #

Unprocessable Entity 422 (RFC 4918)

status428 :: Status Source #

Precondition Required 428 (RFC 6585)

preconditionRequired428 :: Status Source #

Precondition Required 428 (RFC 6585)

status429 :: Status Source #

Too Many Requests 429 (RFC 6585)

tooManyRequests429 :: Status Source #

Too Many Requests 429 (RFC 6585)

status431 :: Status Source #

Request Header Fields Too Large 431 (RFC 6585)

requestHeaderFieldsTooLarge431 :: Status Source #

Request Header Fields Too Large 431 (RFC 6585)

status500 :: Status Source #

Internal Server Error 500

internalServerError500 :: Status Source #

Internal Server Error 500

status501 :: Status Source #

Not Implemented 501

notImplemented501 :: Status Source #

Not Implemented 501

status502 :: Status Source #

Bad Gateway 502

badGateway502 :: Status Source #

Bad Gateway 502

status503 :: Status Source #

Service Unavailable 503

serviceUnavailable503 :: Status Source #

Service Unavailable 503

status504 :: Status Source #

Gateway Timeout 504

gatewayTimeout504 :: Status Source #

Gateway Timeout 504

status505 :: Status Source #

HTTP Version Not Supported 505

status511 :: Status Source #

Network Authentication Required 511 (RFC 6585)

networkAuthenticationRequired511 :: Status Source #

Network Authentication Required 511 (RFC 6585)

httpVersionNotSupported505 :: Status Source #

HTTP Version Not Supported 505

statusIsInformational :: Status -> Bool Source #

Informational class

statusIsSuccessful :: Status -> Bool Source #

Successful class

statusIsRedirection :: Status -> Bool Source #

Redirection class

statusIsClientError :: Status -> Bool Source #

Client Error class

statusIsServerError :: Status -> Bool Source #

Server Error class