election_day.views.exceptionviews

Functions

handle_forbidden(→ onegov.core.types.RenderData)

Displays a nice HTTP 403 error.

handle_notfound(→ onegov.core.types.RenderData)

Displays a nice HTTP 404 error.

handle_accepted(→ onegov.core.types.RenderData)

Displays a nice HTTP 202 exception.

Module Contents

election_day.views.exceptionviews.handle_forbidden(self: webob.exc.HTTPForbidden, request: onegov.election_day.request.ElectionDayRequest) onegov.core.types.RenderData[source]

Displays a nice HTTP 403 error.

election_day.views.exceptionviews.handle_notfound(self: webob.exc.HTTPNotFound, request: onegov.election_day.request.ElectionDayRequest) onegov.core.types.RenderData[source]

Displays a nice HTTP 404 error.

election_day.views.exceptionviews.handle_accepted(self: webob.exc.HTTPAccepted, request: onegov.election_day.request.ElectionDayRequest) onegov.core.types.RenderData[source]

Displays a nice HTTP 202 exception.