Safe Haskell | None |
---|---|
Language | Haskell2010 |
WebGear.Core.Trait.Status
Contents
Description
Generate responses based on their HTTP status
Synopsis
- newtype Status = Status Status
- mkResponse :: Set h Status => Status -> h () (With Response '[Status])
- continue100 :: Set h Status => h () (With Response '[Status])
- switchingProtocols101 :: Set h Status => h () (With Response '[Status])
- ok200 :: Set h Status => h () (With Response '[Status])
- created201 :: Set h Status => h () (With Response '[Status])
- accepted202 :: Set h Status => h () (With Response '[Status])
- nonAuthoritative203 :: Set h Status => h () (With Response '[Status])
- noContent204 :: Set h Status => h () (With Response '[Status])
- resetContent205 :: Set h Status => h () (With Response '[Status])
- partialContent206 :: Set h Status => h () (With Response '[Status])
- multipleChoices300 :: Set h Status => h () (With Response '[Status])
- movedPermanently301 :: Set h Status => h () (With Response '[Status])
- found302 :: Set h Status => h () (With Response '[Status])
- seeOther303 :: Set h Status => h () (With Response '[Status])
- notModified304 :: Set h Status => h () (With Response '[Status])
- temporaryRedirect307 :: Set h Status => h () (With Response '[Status])
- permanentRedirect308 :: Set h Status => h () (With Response '[Status])
- badRequest400 :: Set h Status => h () (With Response '[Status])
- unauthorized401 :: Set h Status => h () (With Response '[Status])
- paymentRequired402 :: Set h Status => h () (With Response '[Status])
- forbidden403 :: Set h Status => h () (With Response '[Status])
- notFound404 :: Set h Status => h () (With Response '[Status])
- methodNotAllowed405 :: Set h Status => h () (With Response '[Status])
- notAcceptable406 :: Set h Status => h () (With Response '[Status])
- proxyAuthenticationRequired407 :: Set h Status => h () (With Response '[Status])
- requestTimeout408 :: Set h Status => h () (With Response '[Status])
- conflict409 :: Set h Status => h () (With Response '[Status])
- gone410 :: Set h Status => h () (With Response '[Status])
- lengthRequired411 :: Set h Status => h () (With Response '[Status])
- preconditionFailed412 :: Set h Status => h () (With Response '[Status])
- requestEntityTooLarge413 :: Set h Status => h () (With Response '[Status])
- requestURITooLong414 :: Set h Status => h () (With Response '[Status])
- unsupportedMediaType415 :: Set h Status => h () (With Response '[Status])
- requestedRangeNotSatisfiable416 :: Set h Status => h () (With Response '[Status])
- expectationFailed417 :: Set h Status => h () (With Response '[Status])
- imATeapot418 :: Set h Status => h () (With Response '[Status])
- unprocessableEntity422 :: Set h Status => h () (With Response '[Status])
- preconditionRequired428 :: Set h Status => h () (With Response '[Status])
- tooManyRequests429 :: Set h Status => h () (With Response '[Status])
- requestHeaderFieldsTooLarge431 :: Set h Status => h () (With Response '[Status])
- internalServerError500 :: Set h Status => h () (With Response '[Status])
- notImplemented501 :: Set h Status => h () (With Response '[Status])
- badGateway502 :: Set h Status => h () (With Response '[Status])
- serviceUnavailable503 :: Set h Status => h () (With Response '[Status])
- gatewayTimeout504 :: Set h Status => h () (With Response '[Status])
- httpVersionNotSupported505 :: Set h Status => h () (With Response '[Status])
- networkAuthenticationRequired511 :: Set h Status => h () (With Response '[Status])
Documentation
HTTP response status
Create responses
mkResponse :: Set h Status => Status -> h () (With Response '[Status]) Source #
Generate a response with the specified status
switchingProtocols101 :: Set h Status => h () (With Response '[Status]) Source #
Switching Protocols 101 response
nonAuthoritative203 :: Set h Status => h () (With Response '[Status]) Source #
Non-Authoritative 203 response
resetContent205 :: Set h Status => h () (With Response '[Status]) Source #
Reset Content 205 response
partialContent206 :: Set h Status => h () (With Response '[Status]) Source #
Partial Content 206 response
multipleChoices300 :: Set h Status => h () (With Response '[Status]) Source #
Multiple Choices 300 response
movedPermanently301 :: Set h Status => h () (With Response '[Status]) Source #
Moved Permanently 301 response
temporaryRedirect307 :: Set h Status => h () (With Response '[Status]) Source #
Temporary Redirect 307 response
permanentRedirect308 :: Set h Status => h () (With Response '[Status]) Source #
Permanent Redirect 308 response
paymentRequired402 :: Set h Status => h () (With Response '[Status]) Source #
Payment Required 402 response
methodNotAllowed405 :: Set h Status => h () (With Response '[Status]) Source #
Method Not Allowed 405 response
notAcceptable406 :: Set h Status => h () (With Response '[Status]) Source #
Not Acceptable 406 response
proxyAuthenticationRequired407 :: Set h Status => h () (With Response '[Status]) Source #
Proxy Authentication Required 407 response
requestTimeout408 :: Set h Status => h () (With Response '[Status]) Source #
Request Timeout 408 response
lengthRequired411 :: Set h Status => h () (With Response '[Status]) Source #
Length Required 411 response
preconditionFailed412 :: Set h Status => h () (With Response '[Status]) Source #
Precondition Failed 412 response
requestEntityTooLarge413 :: Set h Status => h () (With Response '[Status]) Source #
Request Entity Too Large 413 response
requestURITooLong414 :: Set h Status => h () (With Response '[Status]) Source #
Request URI Too Long 414 response
unsupportedMediaType415 :: Set h Status => h () (With Response '[Status]) Source #
Unsupported Media Type 415 response
requestedRangeNotSatisfiable416 :: Set h Status => h () (With Response '[Status]) Source #
Requested Range Not Satisfiable 416 response
expectationFailed417 :: Set h Status => h () (With Response '[Status]) Source #
Expectation Failed 417 response
unprocessableEntity422 :: Set h Status => h () (With Response '[Status]) Source #
Unprocessable Entity 422 response
preconditionRequired428 :: Set h Status => h () (With Response '[Status]) Source #
Precondition Required 428 response
tooManyRequests429 :: Set h Status => h () (With Response '[Status]) Source #
Too Many Requests 429 response
requestHeaderFieldsTooLarge431 :: Set h Status => h () (With Response '[Status]) Source #
Request Header Fields Too Large 431 response
internalServerError500 :: Set h Status => h () (With Response '[Status]) Source #
Internal Server Error 500 response
notImplemented501 :: Set h Status => h () (With Response '[Status]) Source #
Not Implemented 501 response
serviceUnavailable503 :: Set h Status => h () (With Response '[Status]) Source #
Service Unavailable 503 response
gatewayTimeout504 :: Set h Status => h () (With Response '[Status]) Source #
Gateway Timeout 504 response