Module Expr Str ImportFrom alias ImportFrom alias ClassDef bases NameLoad body Expr Str Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr BinOpMod Str TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr If CompareIsNot NameLoad NameLoad body Assign AttributeStore NameLoad attr NameLoad If CompareIsNot NameLoad NameLoad body Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str decorator_list NameLoad FunctionDef arguments args NameParam defaults body Return BinOpMod Str TupleLoad AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore Num Assign NameStore Str decorator_list ClassDef bases NameLoad body Expr Str decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore Num Assign NameStore Str decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore Num Assign NameStore Str decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore Num Assign NameStore Str decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore Num FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad If CompareIs NameLoad NameLoad body Assign AttributeStore NameLoad attr BinOpMod Str NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore Num Assign NameStore Str decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore Num Assign NameStore Str decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore Num Assign NameStore Str decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore Num Assign NameStore Str decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore Num Assign NameStore Str decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore Num Assign NameStore Str decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore Num Assign NameStore Str decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore Num Assign NameStore Str decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore Num Assign NameStore Str decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore Num Assign NameStore Str decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore Num Assign NameStore Str decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore Num Assign NameStore Str decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore Num Assign NameStore Str decorator_list ClassDef bases NameLoad body Assign NameStore Num FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr If Call NameLoad NameLoad NameLoad body Assign AttributeStore NameLoad attr ListLoad NameLoad orelse Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list decorator_list Assign NameStore ListComp SubscriptLoad NameLoad Index Num comprehension NameStore Call NameLoad Call AttributeLoad Call NameLoad attr BoolOpAnd Call NameLoad SubscriptLoad NameLoad Index Num Call NameLoad SubscriptLoad NameLoad Index Num NameLoad
N/A N/A Exceptions

This module implements a set of standard HTTP Errors as Python Exceptions.

Note: This code is mostly borrowed from werkzeug and adapted for circuits.web
 inspect isclass constants HTTP_STATUS_CODES HTTPException N/A Exception N/A N/A 
    Baseclass for all HTTP exceptions.  This exception can be called by WSGI
    applications to render a default error page or you can catch the subclasses
    of it independently and render nicer error messages.
     N/A code None N/A traceback True N/A description None __init__ N/A N/A self description traceback N/A None None N/A N/A N/A N/A N/A super HTTPException self __init__ N/A %d %s N/A N/A self code N/A self name N/A N/A description None N/A N/A N/A self description description N/A N/A traceback None N/A N/A N/A self traceback traceback N/A name N/A N/A self N/A N/A N/A The status name. N/A N/A N/A HTTP_STATUS_CODES get N/A self code N/A property __repr__ N/A N/A self N/A N/A N/A N/A <%s %r> N/A N/A N/A self __class__ __name__ N/A str self N/A N/A BadRequest N/A HTTPException N/A N/A *400* `Bad Request`

    Raise if the browser sends something to the application the application
    or server cannot handle.
     N/A code 400 N/A description <p>The browser (or proxy) sent a request that this server could not understand.</p> N/A UnicodeError N/A HTTPException N/A N/A 
    raised by the request functions if they were unable to decode the
    incoming data properly.
     N/A Unauthorized N/A HTTPException N/A N/A *401* `Unauthorized`

    Raise if the user is not authorized.  Also used if you want to use HTTP
    basic auth.
     N/A code 401 N/A description <p>The server could not verify that you are authorized to access the URL requested.  You either supplied the wrong credentials (e.g. a bad password), or your browser doesn't understand how to supply the credentials required.</p><p>In case you are allowed to request the document, please check your user-id and password and try again.</p> N/A Forbidden N/A HTTPException N/A N/A *403* `Forbidden`

    Raise if the user doesn't have the permission for the requested resource
    but was authenticated.
     N/A code 403 N/A description <p>You don't have the permission to access the requested resource. It is either read-protected or not readable by the server.</p> N/A NotFound N/A HTTPException N/A N/A *404* `Not Found`

    Raise if a resource does not exist and never existed.
     N/A code 404 N/A description <p>The requested URL was not found on the server.</p><p>If you entered the URL manually please check your spelling and try again.</p> N/A MethodNotAllowed N/A HTTPException N/A N/A *405* `Method Not Allowed`

    Raise if the server used a method the resource does not handle.  For
    example `POST` if the resource is view only.  Especially useful for REST.

    The first argument for this exception should be a list of allowed methods.
    Strictly speaking the response would be invalid if you don't provide valid
    methods in the header which you can do with that list.
     N/A code 405 __init__ N/A N/A self method description N/A None N/A N/A N/A N/A HTTPException __init__ self description N/A N/A description None N/A N/A N/A self description N/A <p>The method %s is not allowed for the requested URL.</p> method N/A N/A NotAcceptable N/A HTTPException N/A N/A *406* `Not Acceptable`

    Raise if the server can't return any content conforming to the
    `Accept` headers of the client.
     N/A code 406 N/A description <p>The resource identified by the request is only capable of generating response entities which have content characteristics not acceptable according to the accept headers sent in the request.</p> N/A RequestTimeout N/A HTTPException N/A N/A *408* `Request Timeout`

    Raise to signalize a timeout.
     N/A code 408 N/A description <p>The server closed the network connection because the browser didn't finish the request within the specified time.</p> N/A Gone N/A HTTPException N/A N/A *410* `Gone`

    Raise if a resource existed previously and went away without new location.
     N/A code 410 N/A description <p>The requested URL is no longer available on this server and there is no forwarding address.</p><p>If you followed a link from a foreign page, please contact the author of this page. N/A LengthRequired N/A HTTPException N/A N/A *411* `Length Required`

    Raise if the browser submitted data but no ``Content-Length`` header which
    is required for the kind of processing the server does.
     N/A code 411 N/A description <p>A request with this method requires a valid <code>Content-Length</code> header.</p> N/A PreconditionFailed N/A HTTPException N/A N/A *412* `Precondition Failed`

    Status code used in combination with ``If-Match``, ``If-None-Match``, or
    ``If-Unmodified-Since``.
     N/A code 412 N/A description <p>The precondition on the request for the URL failed positive evaluation.</p> N/A RequestEntityTooLarge N/A HTTPException N/A N/A *413* `Request Entity Too Large`

    The status code one should return if the data submitted exceeded a given
    limit.
     N/A code 413 N/A description <p>The data value transmitted exceeds the capacity limit.</p> N/A RequestURITooLarge N/A HTTPException N/A N/A *414* `Request URI Too Large`

    Like *413* but for too long URLs.
     N/A code 414 N/A description <p>The length of the requested URL exceeds the capacity limit for this server.  The request cannot be processed.</p> N/A UnsupportedMediaType N/A HTTPException N/A N/A *415* `Unsupported Media Type`

    The status code returned if the server is unable to handle the media type
    the client transmitted.
     N/A code 415 N/A description <p>The server does not support the media type transmitted in the request.</p> N/A RangeUnsatisfiable N/A HTTPException N/A N/A *416* `Range Unsatisfiable`

    The status code returned if the server is unable to satisfy the request range
     N/A code 416 N/A description <p>The server cannot satisfy the request range(s).</p> N/A InternalServerError N/A HTTPException N/A N/A *500* `Internal Server Error`

    Raise if an internal server error occurred.  This is a good fallback if an
    unknown error occurred in the dispatcher.
     N/A code 500 N/A description <p>The server encountered an internal error and was unable to complete your request.  Either the server is overloaded or there is an error in the application.</p> N/A NotImplemented N/A HTTPException N/A N/A *501* `Not Implemented`

    Raise if the application does not support the action requested by the
    browser.
     N/A code 501 N/A description <p>The server does not support the action requested by the browser.</p> N/A BadGateway N/A HTTPException N/A N/A *502* `Bad Gateway`

    If you do proxying in your application you should return this status code
    if you received an invalid response from the upstream server it accessed
    in attempting to fulfill the request.
     N/A code 502 N/A description <p>The proxy server received an invalid response from an upstream server.</p> N/A ServiceUnavailable N/A HTTPException N/A N/A *503* `Service Unavailable`

    Status code you should return if a service is temporarily unavailable.
     N/A code 503 N/A description <p>The server is temporarily unable to service your request due to maintenance downtime or capacity problems.  Please try again later.</p> N/A Redirect N/A HTTPException N/A N/A code 303 __init__ N/A N/A self urls status N/A None N/A N/A N/A N/A N/A super Redirect self __init__ N/A N/A isinstance urls str N/A N/A N/A self urls N/A urls N/A N/A N/A self urls urls N/A N/A self status status N/A N/A N/A __all__ N/A N/A x N/A 0 N/A x N/A list N/A N/A N/A globals items N/A N/A isclass N/A x N/A 1 N/A issubclass N/A x N/A 1 HTTPException