webgear-core-1.0.4: Composable, type-safe library to build HTTP APIs
Safe HaskellSafe-Inferred
LanguageHaskell2010

WebGear.Core.Trait.Status

Description

Generate responses based on their HTTP status

Synopsis

Documentation

newtype Status Source #

HTTP response status

Constructors

Status Status 

Instances

Instances details
Trait Status Response Source # 
Instance details

Defined in WebGear.Core.Trait.Status

Associated Types

type Attribute Status Response Source #

type Attribute Status Response Source # 
Instance details

Defined in WebGear.Core.Trait.Status

Create responses

mkResponse :: Set h Status Response => Status -> h () (Linked '[Status] Response) Source #

Generate a response with the specified status

continue100 :: Set h Status Response => h () (Linked '[Status] Response) Source #

Continue 100 response

switchingProtocols101 :: Set h Status Response => h () (Linked '[Status] Response) Source #

Switching Protocols 101 response

ok200 :: Set h Status Response => h () (Linked '[Status] Response) Source #

OK 200 response

created201 :: Set h Status Response => h () (Linked '[Status] Response) Source #

Created 201 response

accepted202 :: Set h Status Response => h () (Linked '[Status] Response) Source #

Accepted 202 response

nonAuthoritative203 :: Set h Status Response => h () (Linked '[Status] Response) Source #

Non-Authoritative 203 response

noContent204 :: Set h Status Response => h () (Linked '[Status] Response) Source #

No Content 204 response

resetContent205 :: Set h Status Response => h () (Linked '[Status] Response) Source #

Reset Content 205 response

partialContent206 :: Set h Status Response => h () (Linked '[Status] Response) Source #

Partial Content 206 response

multipleChoices300 :: Set h Status Response => h () (Linked '[Status] Response) Source #

Multiple Choices 300 response

movedPermanently301 :: Set h Status Response => h () (Linked '[Status] Response) Source #

Moved Permanently 301 response

found302 :: Set h Status Response => h () (Linked '[Status] Response) Source #

Found 302 response

seeOther303 :: Set h Status Response => h () (Linked '[Status] Response) Source #

See Other 303 response

notModified304 :: Set h Status Response => h () (Linked '[Status] Response) Source #

Not Modified 304 response

temporaryRedirect307 :: Set h Status Response => h () (Linked '[Status] Response) Source #

Temporary Redirect 307 response

permanentRedirect308 :: Set h Status Response => h () (Linked '[Status] Response) Source #

Permanent Redirect 308 response

badRequest400 :: Set h Status Response => h () (Linked '[Status] Response) Source #

Bad Request 400 response

unauthorized401 :: Set h Status Response => h () (Linked '[Status] Response) Source #

Unauthorized 401 response

paymentRequired402 :: Set h Status Response => h () (Linked '[Status] Response) Source #

Payment Required 402 response

forbidden403 :: Set h Status Response => h () (Linked '[Status] Response) Source #

Forbidden 403 response

notFound404 :: Set h Status Response => h () (Linked '[Status] Response) Source #

Not Found 404 response

methodNotAllowed405 :: Set h Status Response => h () (Linked '[Status] Response) Source #

Method Not Allowed 405 response

notAcceptable406 :: Set h Status Response => h () (Linked '[Status] Response) Source #

Not Acceptable 406 response

proxyAuthenticationRequired407 :: Set h Status Response => h () (Linked '[Status] Response) Source #

Proxy Authentication Required 407 response

requestTimeout408 :: Set h Status Response => h () (Linked '[Status] Response) Source #

Request Timeout 408 response

conflict409 :: Set h Status Response => h () (Linked '[Status] Response) Source #

Conflict 409 response

gone410 :: Set h Status Response => h () (Linked '[Status] Response) Source #

Gone 410 response

lengthRequired411 :: Set h Status Response => h () (Linked '[Status] Response) Source #

Length Required 411 response

preconditionFailed412 :: Set h Status Response => h () (Linked '[Status] Response) Source #

Precondition Failed 412 response

requestEntityTooLarge413 :: Set h Status Response => h () (Linked '[Status] Response) Source #

Request Entity Too Large 413 response

requestURITooLong414 :: Set h Status Response => h () (Linked '[Status] Response) Source #

Request URI Too Long 414 response

unsupportedMediaType415 :: Set h Status Response => h () (Linked '[Status] Response) Source #

Unsupported Media Type 415 response

requestedRangeNotSatisfiable416 :: Set h Status Response => h () (Linked '[Status] Response) Source #

Requested Range Not Satisfiable 416 response

expectationFailed417 :: Set h Status Response => h () (Linked '[Status] Response) Source #

Expectation Failed 417 response

imATeapot418 :: Set h Status Response => h () (Linked '[Status] Response) Source #

I'm A Teapot 418 response

unprocessableEntity422 :: Set h Status Response => h () (Linked '[Status] Response) Source #

Unprocessable Entity 422 response

preconditionRequired428 :: Set h Status Response => h () (Linked '[Status] Response) Source #

Precondition Required 428 response

tooManyRequests429 :: Set h Status Response => h () (Linked '[Status] Response) Source #

Too Many Requests 429 response

requestHeaderFieldsTooLarge431 :: Set h Status Response => h () (Linked '[Status] Response) Source #

Request Header Fields Too Large 431 response

internalServerError500 :: Set h Status Response => h () (Linked '[Status] Response) Source #

Internal Server Error 500 response

notImplemented501 :: Set h Status Response => h () (Linked '[Status] Response) Source #

Not Implemented 501 response

badGateway502 :: Set h Status Response => h () (Linked '[Status] Response) Source #

Bad Gateway 502 response

serviceUnavailable503 :: Set h Status Response => h () (Linked '[Status] Response) Source #

Service Unavailable 503 response

gatewayTimeout504 :: Set h Status Response => h () (Linked '[Status] Response) Source #

Gateway Timeout 504 response

httpVersionNotSupported505 :: Set h Status Response => h () (Linked '[Status] Response) Source #

HTTP Version Not Supported 505 response

networkAuthenticationRequired511 :: Set h Status Response => h () (Linked '[Status] Response) Source #

Network Authentication Required 511 response