Error Handler
This package contains views to handle HTTP errors
Error Handler
- integreat_cms.cms.views.error_handler.error_handler.csrf_failure(request: HttpRequest, reason: str) HttpResponseForbidden [source]
Render a CSRF failure notice
- Parameters:
request (HttpRequest) – Object representing the user call
reason (str) – Description of reason for CSRF failure
- Returns:
The rendered template response
- Return type:
HttpResponseForbidden
- integreat_cms.cms.views.error_handler.error_handler.handler400(request: HttpRequest, exception: BadRequest) HttpResponseBadRequest [source]
Render a HTTP 400 Error code
- Parameters:
request (HttpRequest) – Object representing the user call
exception (BadRequest) – Exception (unused)
- Returns:
The rendered template response
- Return type:
HttpResponseBadRequest
- integreat_cms.cms.views.error_handler.error_handler.handler403(request: HttpRequest, exception: PermissionDenied) HttpResponseForbidden [source]
Render a HTTP 403 Error code
- Parameters:
request (HttpRequest) – Object representing the user call
exception (PermissionDenied) – Exception (unused)
- Returns:
The rendered template response
- Return type:
HttpResponseForbidden
- integreat_cms.cms.views.error_handler.error_handler.handler404(request: HttpRequest, exception: Http404) HttpResponseNotFound [source]
Render a HTTP 404 Error code
- Parameters:
request (HttpRequest) – Object representing the user call
exception (Http404) – Exception (unused)
- Returns:
The rendered template response
- Return type:
HttpResponseNotFound
- integreat_cms.cms.views.error_handler.error_handler.handler500(request: HttpRequest) HttpResponseServerError [source]
Render a HTTP 500 Error code
- Parameters:
request (HttpRequest) – Object representing the user call
- Returns:
The rendered template response
- Return type:
HttpResponseServerError