Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Generate responses based on their HTTP status
Synopsis
- newtype Status = Status Status
- mkResponse :: Set h Status Response => Status -> h () (Linked '[Status] Response)
- continue100 :: Set h Status Response => h () (Linked '[Status] Response)
- switchingProtocols101 :: Set h Status Response => h () (Linked '[Status] Response)
- ok200 :: Set h Status Response => h () (Linked '[Status] Response)
- created201 :: Set h Status Response => h () (Linked '[Status] Response)
- accepted202 :: Set h Status Response => h () (Linked '[Status] Response)
- nonAuthoritative203 :: Set h Status Response => h () (Linked '[Status] Response)
- noContent204 :: Set h Status Response => h () (Linked '[Status] Response)
- resetContent205 :: Set h Status Response => h () (Linked '[Status] Response)
- partialContent206 :: Set h Status Response => h () (Linked '[Status] Response)
- multipleChoices300 :: Set h Status Response => h () (Linked '[Status] Response)
- movedPermanently301 :: Set h Status Response => h () (Linked '[Status] Response)
- found302 :: Set h Status Response => h () (Linked '[Status] Response)
- seeOther303 :: Set h Status Response => h () (Linked '[Status] Response)
- notModified304 :: Set h Status Response => h () (Linked '[Status] Response)
- temporaryRedirect307 :: Set h Status Response => h () (Linked '[Status] Response)
- permanentRedirect308 :: Set h Status Response => h () (Linked '[Status] Response)
- badRequest400 :: Set h Status Response => h () (Linked '[Status] Response)
- unauthorized401 :: Set h Status Response => h () (Linked '[Status] Response)
- paymentRequired402 :: Set h Status Response => h () (Linked '[Status] Response)
- forbidden403 :: Set h Status Response => h () (Linked '[Status] Response)
- notFound404 :: Set h Status Response => h () (Linked '[Status] Response)
- methodNotAllowed405 :: Set h Status Response => h () (Linked '[Status] Response)
- notAcceptable406 :: Set h Status Response => h () (Linked '[Status] Response)
- proxyAuthenticationRequired407 :: Set h Status Response => h () (Linked '[Status] Response)
- requestTimeout408 :: Set h Status Response => h () (Linked '[Status] Response)
- conflict409 :: Set h Status Response => h () (Linked '[Status] Response)
- gone410 :: Set h Status Response => h () (Linked '[Status] Response)
- lengthRequired411 :: Set h Status Response => h () (Linked '[Status] Response)
- preconditionFailed412 :: Set h Status Response => h () (Linked '[Status] Response)
- requestEntityTooLarge413 :: Set h Status Response => h () (Linked '[Status] Response)
- requestURITooLong414 :: Set h Status Response => h () (Linked '[Status] Response)
- unsupportedMediaType415 :: Set h Status Response => h () (Linked '[Status] Response)
- requestedRangeNotSatisfiable416 :: Set h Status Response => h () (Linked '[Status] Response)
- expectationFailed417 :: Set h Status Response => h () (Linked '[Status] Response)
- imATeapot418 :: Set h Status Response => h () (Linked '[Status] Response)
- unprocessableEntity422 :: Set h Status Response => h () (Linked '[Status] Response)
- preconditionRequired428 :: Set h Status Response => h () (Linked '[Status] Response)
- tooManyRequests429 :: Set h Status Response => h () (Linked '[Status] Response)
- requestHeaderFieldsTooLarge431 :: Set h Status Response => h () (Linked '[Status] Response)
- internalServerError500 :: Set h Status Response => h () (Linked '[Status] Response)
- notImplemented501 :: Set h Status Response => h () (Linked '[Status] Response)
- badGateway502 :: Set h Status Response => h () (Linked '[Status] Response)
- serviceUnavailable503 :: Set h Status Response => h () (Linked '[Status] Response)
- gatewayTimeout504 :: Set h Status Response => h () (Linked '[Status] Response)
- httpVersionNotSupported505 :: Set h Status Response => h () (Linked '[Status] Response)
- networkAuthenticationRequired511 :: Set h Status Response => h () (Linked '[Status] Response)
Documentation
HTTP response 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
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
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
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