guillotina.response¶
- class guillotina.response.Response(*, body=None, content=None, headers=None, status=None, content_type=None, content_length=None)¶
Bases:
Exception- __init__(*, body=None, content=None, headers=None, status=None, content_type=None, content_length=None)¶
- Parameters:
body (
Optional[bytes]) -- raw bodycontent (
Optional[dict]) -- content to serializeheaders (
Union[dict,CIMultiDict,None]) -- headers to set on responsestatus (
Optional[int]) -- customize the response status
- class guillotina.response.ErrorResponse(type, message, *, reason=None, content=None, headers=None, status=500)¶
Bases:
Response- __init__(type, message, *, reason=None, content=None, headers=None, status=500)¶
- Parameters:
type (
str) -- type of errormessage (
str) -- error messagecontent (
Optional[dict]) -- provide additional contentheaders (
Optional[dict]) -- headers to set on responsestatus (
int) -- customize the response status
- class guillotina.response.HTTPError(*, body=None, content=None, headers=None, status=None, content_type=None, content_length=None)¶
Bases:
ResponseBase class for exceptions with status codes in the 400s and 500s.
- class guillotina.response.HTTPRedirection(*, body=None, content=None, headers=None, status=None, content_type=None, content_length=None)¶
Bases:
ResponseBase class for exceptions with status codes in the 300s.
- class guillotina.response.HTTPSuccessful(*, body=None, content=None, headers=None, status=None, content_type=None, content_length=None)¶
Bases:
ResponseBase class for exceptions with status codes in the 200s.
- class guillotina.response.HTTPOk(*, body=None, content=None, headers=None, status=None, content_type=None, content_length=None)¶
Bases:
HTTPSuccessful
- class guillotina.response.HTTPCreated(*, body=None, content=None, headers=None, status=None, content_type=None, content_length=None)¶
Bases:
HTTPSuccessful
- class guillotina.response.HTTPAccepted(*, body=None, content=None, headers=None, status=None, content_type=None, content_length=None)¶
Bases:
HTTPSuccessful
- class guillotina.response.HTTPNonAuthoritativeInformation(*, body=None, content=None, headers=None, status=None, content_type=None, content_length=None)¶
Bases:
HTTPSuccessful
- class guillotina.response.HTTPNoContent(*, body=None, content=None, headers=None, status=None, content_type=None, content_length=None)¶
Bases:
HTTPSuccessful
- class guillotina.response.HTTPResetContent(*, body=None, content=None, headers=None, status=None, content_type=None, content_length=None)¶
Bases:
HTTPSuccessful
- class guillotina.response.HTTPPartialContent(*, body=None, content=None, headers=None, status=None, content_type=None, content_length=None)¶
Bases:
HTTPSuccessful
- class guillotina.response.HTTPMultipleChoices(location, *, content=None, headers=None)¶
Bases:
_HTTPMove- Parameters:
location (
str) -- where to redirectheaders (
Optional[dict]) -- additional headers to set
- __init__(location, *, content=None, headers=None)¶
- Parameters:
body -- raw body
content (
Optional[dict]) -- content to serializeheaders (
Optional[dict]) -- headers to set on responsestatus -- customize the response status
- class guillotina.response.HTTPMovedPermanently(location, *, content=None, headers=None)¶
Bases:
_HTTPMove- Parameters:
location (
str) -- where to redirectheaders (
Optional[dict]) -- additional headers to set
- __init__(location, *, content=None, headers=None)¶
- Parameters:
body -- raw body
content (
Optional[dict]) -- content to serializeheaders (
Optional[dict]) -- headers to set on responsestatus -- customize the response status
- class guillotina.response.HTTPFound(location, *, content=None, headers=None)¶
Bases:
_HTTPMove- Parameters:
location (
str) -- where to redirectheaders (
Optional[dict]) -- additional headers to set
- __init__(location, *, content=None, headers=None)¶
- Parameters:
body -- raw body
content (
Optional[dict]) -- content to serializeheaders (
Optional[dict]) -- headers to set on responsestatus -- customize the response status
- class guillotina.response.HTTPSeeOther(location, *, content=None, headers=None)¶
Bases:
_HTTPMove- Parameters:
location (
str) -- where to redirectheaders (
Optional[dict]) -- additional headers to set
- __init__(location, *, content=None, headers=None)¶
- Parameters:
body -- raw body
content (
Optional[dict]) -- content to serializeheaders (
Optional[dict]) -- headers to set on responsestatus -- customize the response status
- class guillotina.response.HTTPNotModified(*, body=None, content=None, headers=None, status=None, content_type=None, content_length=None)¶
Bases:
HTTPRedirection
- class guillotina.response.HTTPUseProxy(location, *, content=None, headers=None)¶
Bases:
_HTTPMove- __init__(location, *, content=None, headers=None)¶
- Parameters:
body -- raw body
content (
Optional[dict]) -- content to serializeheaders (
Optional[dict]) -- headers to set on responsestatus -- customize the response status
- class guillotina.response.HTTPTemporaryRedirect(location, *, content=None, headers=None)¶
Bases:
_HTTPMove- __init__(location, *, content=None, headers=None)¶
- Parameters:
body -- raw body
content (
Optional[dict]) -- content to serializeheaders (
Optional[dict]) -- headers to set on responsestatus -- customize the response status
- class guillotina.response.HTTPPermanentRedirect(location, *, content=None, headers=None)¶
Bases:
_HTTPMove- __init__(location, *, content=None, headers=None)¶
- Parameters:
body -- raw body
content (
Optional[dict]) -- content to serializeheaders (
Optional[dict]) -- headers to set on responsestatus -- customize the response status
- class guillotina.response.HTTPClientError(*, body=None, content=None, headers=None, status=None, content_type=None, content_length=None)¶
Bases:
HTTPError
- class guillotina.response.HTTPBadRequest(*, body=None, content=None, headers=None, status=None, content_type=None, content_length=None)¶
Bases:
HTTPClientError
- class guillotina.response.HTTPUnauthorized(*, body=None, content=None, headers=None, status=None, content_type=None, content_length=None)¶
Bases:
HTTPClientError
- class guillotina.response.HTTPPaymentRequired(*, body=None, content=None, headers=None, status=None, content_type=None, content_length=None)¶
Bases:
HTTPClientError
- class guillotina.response.HTTPForbidden(*, body=None, content=None, headers=None, status=None, content_type=None, content_length=None)¶
Bases:
HTTPClientError
- class guillotina.response.HTTPNotFound(*, body=None, content=None, headers=None, status=None, content_type=None, content_length=None)¶
Bases:
HTTPClientError
- class guillotina.response.InvalidRoute(*, body=None, content=None, headers=None, status=None, content_type=None, content_length=None)¶
Bases:
HTTPNotFoundThe defined route is invalid
- class guillotina.response.HTTPMethodNotAllowed(method, allowed_methods, *, content=None, headers=None)¶
Bases:
HTTPClientError- __init__(method, allowed_methods, *, content=None, headers=None)¶
- Parameters:
method (
str) -- method not allowedallowed_methods (
list) -- list of allowed methodscontent (
Optional[dict]) -- content to serializeheaders (
Optional[dict]) -- headers to set on response
- class guillotina.response.HTTPNotAcceptable(*, body=None, content=None, headers=None, status=None, content_type=None, content_length=None)¶
Bases:
HTTPClientError
- class guillotina.response.HTTPProxyAuthenticationRequired(*, body=None, content=None, headers=None, status=None, content_type=None, content_length=None)¶
Bases:
HTTPClientError
- class guillotina.response.HTTPRequestTimeout(*, body=None, content=None, headers=None, status=None, content_type=None, content_length=None)¶
Bases:
HTTPClientError
- class guillotina.response.HTTPConflict(*, body=None, content=None, headers=None, status=None, content_type=None, content_length=None)¶
Bases:
HTTPClientError
- class guillotina.response.HTTPGone(*, body=None, content=None, headers=None, status=None, content_type=None, content_length=None)¶
Bases:
HTTPClientError
- class guillotina.response.HTTPLengthRequired(*, body=None, content=None, headers=None, status=None, content_type=None, content_length=None)¶
Bases:
HTTPClientError
- class guillotina.response.HTTPPreconditionFailed(*, body=None, content=None, headers=None, status=None, content_type=None, content_length=None)¶
Bases:
HTTPClientError
- class guillotina.response.HTTPRequestEntityTooLarge(max_size, actual_size, *args, **kwargs)¶
Bases:
HTTPClientError
- class guillotina.response.HTTPRequestURITooLong(*, body=None, content=None, headers=None, status=None, content_type=None, content_length=None)¶
Bases:
HTTPClientError
- class guillotina.response.HTTPUnsupportedMediaType(*, body=None, content=None, headers=None, status=None, content_type=None, content_length=None)¶
Bases:
HTTPClientError
- class guillotina.response.HTTPRequestRangeNotSatisfiable(*, body=None, content=None, headers=None, status=None, content_type=None, content_length=None)¶
Bases:
HTTPClientError
- class guillotina.response.HTTPExpectationFailed(*, body=None, content=None, headers=None, status=None, content_type=None, content_length=None)¶
Bases:
HTTPClientError
- class guillotina.response.HTTPMisdirectedRequest(*, body=None, content=None, headers=None, status=None, content_type=None, content_length=None)¶
Bases:
HTTPClientError
- class guillotina.response.HTTPUnprocessableEntity(*, body=None, content=None, headers=None, status=None, content_type=None, content_length=None)¶
Bases:
HTTPClientError
- class guillotina.response.HTTPFailedDependency(*, body=None, content=None, headers=None, status=None, content_type=None, content_length=None)¶
Bases:
HTTPClientError
- class guillotina.response.HTTPUpgradeRequired(*, body=None, content=None, headers=None, status=None, content_type=None, content_length=None)¶
Bases:
HTTPClientError
- class guillotina.response.HTTPPreconditionRequired(*, body=None, content=None, headers=None, status=None, content_type=None, content_length=None)¶
Bases:
HTTPClientError
- class guillotina.response.HTTPTooManyRequests(*, body=None, content=None, headers=None, status=None, content_type=None, content_length=None)¶
Bases:
HTTPClientError
- class guillotina.response.HTTPRequestHeaderFieldsTooLarge(*, body=None, content=None, headers=None, status=None, content_type=None, content_length=None)¶
Bases:
HTTPClientError
Bases:
HTTPClientError
- class guillotina.response.HTTPServerError(*, body=None, content=None, headers=None, status=None, content_type=None, content_length=None)¶
Bases:
HTTPError
- class guillotina.response.HTTPInternalServerError(*, body=None, content=None, headers=None, status=None, content_type=None, content_length=None)¶
Bases:
HTTPServerError
- class guillotina.response.HTTPNotImplemented(*, body=None, content=None, headers=None, status=None, content_type=None, content_length=None)¶
Bases:
HTTPServerError
- class guillotina.response.HTTPBadGateway(*, body=None, content=None, headers=None, status=None, content_type=None, content_length=None)¶
Bases:
HTTPServerError
Bases:
HTTPServerError
- class guillotina.response.HTTPGatewayTimeout(*, body=None, content=None, headers=None, status=None, content_type=None, content_length=None)¶
Bases:
HTTPServerError
- class guillotina.response.HTTPVersionNotSupported(*, body=None, content=None, headers=None, status=None, content_type=None, content_length=None)¶
Bases:
HTTPServerError
- class guillotina.response.HTTPVariantAlsoNegotiates(*, body=None, content=None, headers=None, status=None, content_type=None, content_length=None)¶
Bases:
HTTPServerError
- class guillotina.response.HTTPInsufficientStorage(*, body=None, content=None, headers=None, status=None, content_type=None, content_length=None)¶
Bases:
HTTPServerError
- class guillotina.response.HTTPNotExtended(*, body=None, content=None, headers=None, status=None, content_type=None, content_length=None)¶
Bases:
HTTPServerError
- class guillotina.response.HTTPNetworkAuthenticationRequired(*, body=None, content=None, headers=None, status=None, content_type=None, content_length=None)¶
Bases:
HTTPServerError