circuits.web.errors – Errors — circuits 2.1.0 documentation

# circuits 2.1.0 documentation

# `circuits.web.errors` – Errors

Errors

This module implements a set of standard HTTP Errors.

## Components

none

## Events

class `circuits.web.errors.` `HTTPError`(request, response, code=None, **kwargs)

  Bases: `circuits.core.events.Event`

  An event for signaling an HTTP error

  The constructor creates a new instance and modifies the response argument to reflect the error.

class `circuits.web.errors.` `Forbidden`(request, response, code=None, **kwargs)

  Bases: `circuits.web.errors.HTTPError`

  An event for signaling the HTTP Forbidden error

  The constructor creates a new instance and modifies the response argument to reflect the error.

class `circuits.web.errors.` `NotFound`(request, response, code=None, **kwargs)

  Bases: `circuits.web.errors.HTTPError`

  An event for signaling the HTTP Not Fouond error

  The constructor creates a new instance and modifies the response argument to reflect the error.

class `circuits.web.errors.` `Redirect`(request, response, urls, code=None)

  Bases: `circuits.web.errors.HTTPError`

  An event for signaling the HTTP Redirect response

  The constructor creates a new instance and modifies the response argument to reflect a redirect response to the given url.

class `circuits.web.errors.` `Unauthorized`(request, response, code=None, **kwargs)

  Bases: `circuits.web.errors.HTTPError`

  An event for signaling the HTTP Unauthorized error

  The constructor creates a new instance and modifies the response argument to reflect the error.

## Functions

none