Module Expr Str Expr Str Import alias Import alias Import alias Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias Import alias ImportFrom alias alias ImportFrom alias ImportFrom alias Assign NameStore NameLoad Assign NameStore Str FunctionDef arguments args defaults body Global identifier Assign NameStore Dict For TupleStore NameStore NameStore Call AttributeLoad Call NameLoad attr body TryExcept body If Call NameLoad NameLoad NameLoad body Assign SubscriptStore NameLoad Index AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type TupleLoad NameLoad NameLoad body Pass decorator_list Assign NameStore Dict Str Str Str Str Str Str Str Str Assign NameStore Str ClassDef bases NameLoad NameLoad body Assign NameStore NameLoad Assign NameStore Str Assign NameStore Str FunctionDef arguments args NameParam NameParam defaults NameLoad kwarg body Assign AttributeStore NameLoad attr BoolOpOr NameLoad AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr keyword Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body TryExcept body Assign NameStore SubscriptLoad NameLoad Index NameLoad handlers ExceptHandler type NameLoad body Assign TupleStore NameStore NameStore TupleLoad Str Str Assign NameStore Call NameLoad NameLoad BinOpAdd Str NameLoad Assign AttributeStore NameLoad attr Call NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index Str Call NameLoad NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Pass decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Dict Str Str Str Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Dict For TupleStore NameStore NameStore Call AttributeLoad Call AttributeLoad NameLoad attr attr body If CompareIs NameLoad NameLoad body Assign SubscriptStore NameLoad Index NameLoad Str Continue TryExcept body Assign SubscriptStore NameLoad Index NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad handlers ExceptHandler type NameLoad name NameStore body Assign SubscriptStore NameLoad Index NameLoad Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults Num NameLoad NameLoad body Assign NameStore Call NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad Return Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore ListLoad BinOpMod Str TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr ListLoad Str AttributeLoad NameLoad attr If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr ListLoad Str BinOpMod Str AttributeLoad NameLoad attr Return Call AttributeLoad Str attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore ListLoad Str Str Str If SubscriptLoad NameLoad Index Str body Expr Call AttributeLoad NameLoad attr Str If SubscriptLoad NameLoad Index Str body If Call AttributeLoad SubscriptLoad NameLoad Index Str attr Str body Expr Call AttributeLoad NameLoad attr Str orelse Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Return Call AttributeLoad Call AttributeLoad Str attr NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad Str attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Return BinOpMod Str TupleLoad NameLoad Call NameLoad NameLoad Str Str decorator_list decorator_list ClassDef bases NameLoad body Assign NameStore Num Assign NameStore Str Assign NameStore Str decorator_list ClassDef bases NameLoad body Assign NameStore Num Assign NameStore Str Assign NameStore Str decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore Num Assign NameStore Str Assign NameStore Str decorator_list ClassDef bases NameLoad body Assign NameStore Num Assign NameStore Str Assign NameStore Str decorator_list ClassDef bases NameLoad body Assign NameStore Num Assign NameStore Str Assign NameStore Str FunctionDef arguments args NameParam defaults vararg kwarg body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad decorator_list decorator_list ClassDef bases NameLoad body Assign NameStore Num Assign NameStore Str Assign NameStore Str FunctionDef arguments args NameParam NameParam defaults NameLoad vararg kwarg body Assign AttributeStore NameLoad attr Call NameLoad BoolOpOr NameLoad ListLoad If AttributeLoad NameLoad attr body Assign NameStore Call NameLoad AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr BinOpMod Str TupleLoad AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad decorator_list decorator_list ClassDef bases NameLoad body Assign NameStore Num Assign NameStore Str Assign NameStore Str decorator_list ClassDef bases NameLoad body Assign NameStore Num Assign NameStore Str Assign NameStore Str decorator_list ClassDef bases NameLoad body Assign NameStore Num Assign NameStore Str Assign NameStore Str decorator_list ClassDef bases NameLoad body Assign NameStore Num Assign NameStore Str Assign NameStore Str decorator_list ClassDef bases NameLoad body Assign NameStore Num Assign NameStore Str Assign NameStore Str decorator_list ClassDef bases NameLoad body Assign NameStore Num Assign NameStore Str Assign NameStore Str decorator_list ClassDef bases NameLoad body Assign NameStore Num Assign NameStore Str Assign NameStore Str decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore Num Assign NameStore Str Assign NameStore Str decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore Num Assign NameStore Str Assign NameStore Str decorator_list ClassDef bases NameLoad body Assign NameStore Num Assign NameStore Str Assign NameStore Str decorator_list ClassDef bases NameLoad body Assign NameStore Num Assign NameStore Str Assign NameStore Str decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore Num Assign NameStore Str Assign NameStore Str decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore Num Assign NameStore Str Assign NameStore Str decorator_list ClassDef bases NameLoad body Assign NameStore Num Assign NameStore Str Assign NameStore Str decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore Num Assign NameStore Str Assign NameStore Str decorator_list ClassDef bases NameLoad body Assign NameStore Num Assign NameStore Str Assign NameStore Str decorator_list ClassDef bases NameLoad body Assign NameStore Num Assign NameStore Str Assign NameStore Str decorator_list ClassDef bases NameLoad body Assign NameStore Num Assign NameStore Str Assign NameStore Str decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore Num Assign NameStore Str Assign NameStore Str decorator_list ClassDef bases NameLoad body Assign NameStore Num Assign NameStore Str Assign NameStore Str FunctionDef arguments args NameParam NameParam defaults NameLoad kwarg body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad If CompareIs AttributeLoad NameLoad attr NameLoad body TryExcept body Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call NameLoad NameLoad NameLoad Assign AttributeStore NameLoad attr BinOpAdd NameLoad AttributeLoad NameLoad attr handlers ExceptHandler body Pass decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad Call NameLoad NameLoad NameLoad attr TryExcept body Assign SubscriptStore NameLoad Index Str Call AttributeLoad AttributeLoad NameLoad attr attr handlers ExceptHandler body Assign SubscriptStore NameLoad Index Str NameLoad Return NameLoad decorator_list decorator_list ClassDef bases NameLoad body Assign NameStore Num Assign NameStore Str Assign NameStore Str decorator_list ClassDef bases NameLoad body Assign NameStore Num Assign NameStore Str Assign NameStore Str decorator_list ClassDef bases NameLoad body Assign NameStore Num Assign NameStore Str Assign NameStore Str decorator_list ClassDef bases NameLoad body Assign NameStore Num Assign NameStore Str Assign NameStore Str decorator_list ClassDef bases NameLoad body Assign NameStore Num Assign NameStore Str Assign NameStore Str decorator_list ClassDef bases NameLoad body Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad FunctionDef arguments args NameParam defaults kwarg body Expr Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults kwarg body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults kwarg body If AttributeLoad NameLoad attr body Raise Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Return Call AttributeLoad NameLoad attr Call NameLoad NameLoad keyword NameLoad keyword NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults vararg kwarg body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults vararg kwarg body Assign NameStore Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad Delete SubscriptDel NameLoad Index Str Assign NameStore Call NameLoad NameLoad Str NameLoad If UnaryOpNot NameLoad body Return NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr For TupleStore NameStore NameStore Call NameLoad SubscriptLoad NameLoad Index Str body If AttributeLoad NameLoad attr body If BoolOpAnd UnaryOpNot SubscriptLoad NameLoad Index Str CompareEq SubscriptLoad NameLoad Index Str Str body Assign SubscriptStore NameLoad Index Str NameLoad orelse If BoolOpAnd CompareEq SubscriptLoad NameLoad Index Str Str CompareEq SubscriptLoad NameLoad Index Str Str body Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str NameLoad TryExcept body Assign NameStore SubscriptLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index Num Index Str handlers ExceptHandler type NameLoad body Assign NameStore Num Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str BinOpAdd SubscriptLoad NameLoad Index Str Num TryExcept body Assign NameStore SubscriptLoad SubscriptLoad NameLoad Index Str Index Num handlers ExceptHandler body Assign NameStore NameLoad Assign NameStore Dict Str Str Str Str Str Str Str Str Str Str NameLoad Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad Call NameLoad AttributeLoad NameLoad attr Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Dict Str Str Str AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str Str AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr If NameLoad body Assign SubscriptStore NameLoad Index Str Dict Str Str Str Str Str Str Str Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults vararg kwarg body Assign NameStore Call AttributeLoad NameLoad attr Return Call AttributeLoad NameLoad attr Str NameLoad decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults vararg kwarg body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr If UnaryOpNot NameLoad body Return NameLoad Assign NameStore ListLoad For NameStore AttributeLoad NameLoad attr body Assign NameStore Dict Str Str AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr If AttributeLoad NameLoad attr body Assign SubscriptStore NameLoad Index Str Call NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Assign SubscriptStore NameLoad Index Str NameLoad If AttributeLoad NameLoad attr body Assign SubscriptStore NameLoad Index Str NameStore Dict Assign SubscriptStore NameLoad Index Str AttributeLoad AttributeLoad NameLoad attr attr Assign SubscriptStore NameLoad Index Str AttributeLoad AttributeLoad NameLoad attr attr Return NameLoad decorator_list FunctionDef arguments args NameParam defaults vararg kwarg body Assign NameStore Call AttributeLoad NameLoad attr Return Call AttributeLoad NameLoad attr Str NameLoad decorator_list decorator_list ClassDef bases NameLoad body Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad FunctionDef arguments args NameParam defaults vararg kwarg body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults kwarg body Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore AttributeLoad NameLoad attr Return Call NameLoad Call NameLoad NameLoad keyword NameLoad keyword NameLoad keyword Call AttributeLoad NameLoad attr Str keyword AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults kwarg body Assign SubscriptStore NameLoad Index Str NameLoad Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad decorator_list decorator_list ClassDef bases NameLoad body Assign NameStore NameLoad FunctionDef arguments args NameParam defaults kwarg body Print Str Raise decorator_list decorator_list Expr Call NameLoad
N/A N/A 
One notable (if incremental) improvement over Werkzeug's error system
is that 400-level requests share a common base class
(BadRequest). Same goes for do 500-coded requests
(InternalServerError).

Another note: If you subclass any of these errors, make sure
the __init__ accepts **kwargs.
 N/A 
Clastic HTTP exceptions seek to provide a general structure for errors
that readily translates to common human- and machine-readable formats
(i.e., JSON, XML, HTML, plain text). It does so with the following
fields:

- code (required): Defines the fundamental class of error, as
  according to the HTTP spec, usually implied by the HTTPException
  subclass being used
- message: A short message describing the error, defaulting to
  the one specified by HTTP (e.g., 403 -> "Forbidden",
  404 -> "Not Found")
- detail: A longer-form description of the message, used as
  the body of the response. Could include an explanation of the error,
  trace information, or unique identifiers. Structured values
  will be JSON-ified.
- error_type: A short value specifying the specific subtype of HTTP
  (e.g., for 403, "http://example.net/errors/invalid_token")

TODO: naming scheme?
TODO: HTTPException could well be a metaclass
TODO: weird print/repr bug (prints blank)
TODO: enable detail to be a templatable thing?
TODO: 500-level errors should support a structured traceback field?

Possible values to support templating:

* Target URL
* Referring URL
* Method
* Allowed methods

 N/A cgi N/A sys N/A json N/A datetime N/A exceptions werkzeug.utils get_content_type werkzeug.debug DebuggedApplication werkzeug.wrappers BaseResponse N/A sinter tbutils ExceptionInfo ContextualExceptionInfo render.simple ClasticJSONEncoder _contextual_errors CONTEXTUAL_ENV N/A ERROR_CODE_MAP None N/A STDLIB_EXC_URL http://docs.python.org/2/library/exceptions.html#exceptions. _module_init N/A N/A N/A N/A N/A ERROR_CODE_MAP N/A ERROR_CODE_MAP N/A N/A N/A k v N/A N/A N/A globals items N/A N/A N/A N/A N/A issubclass v HTTPException N/A N/A N/A ERROR_CODE_MAP N/A N/A v code v N/A N/A N/A N/A TypeError AttributeError N/A N/A N/A N/A MIME_SUPPORT_MAP N/A text/html application/json text/plain application/xml html json text xml N/A DEFAULT_MIME text/plain HTTPException N/A BaseResponse Exception N/A N/A code None N/A message Error N/A detail An unspecified error occurred. __init__ N/A N/A self detail N/A None kwargs N/A N/A N/A self detail N/A detail N/A self detail N/A N/A self message N/A N/A kwargs pop message N/A self message N/A N/A self code N/A N/A kwargs pop code N/A self code N/A N/A self error_type N/A N/A kwargs pop error_type None N/A N/A self is_breaking N/A N/A kwargs pop is_breaking True N/A N/A self source_route N/A N/A kwargs pop source_route None N/A headers N/A N/A kwargs pop headers None N/A mimetype N/A N/A kwargs pop mimetype DEFAULT_MIME N/A content_type N/A N/A kwargs pop content_type None N/A N/A N/A N/A super HTTPException self __init__ response N/A N/A self to_text status N/A self code headers headers mimetype mimetype content_type content_type N/A adapt N/A N/A self mimetype N/A None N/A N/A N/A N/A fmt_name N/A MIME_SUPPORT_MAP N/A mimetype N/A N/A N/A KeyError N/A N/A N/A fmt_name mimetype N/A text text/plain N/A _method N/A getattr self N/A to_ fmt_name N/A N/A self data N/A _method N/A N/A N/A self headers N/A Content-Type N/A get_content_type mimetype N/A self charset N/A transcribe N/A N/A self request N/A N/A N/A N/A to_dict N/A N/A self N/A N/A N/A ret N/A detail message code error_type N/A self detail N/A self message N/A self code N/A self error_type N/A ret N/A to_escaped_dict N/A N/A self N/A N/A N/A ret N/A N/A N/A k v N/A N/A N/A N/A self to_dict items N/A N/A N/A v None N/A N/A N/A ret N/A k N/A N/A N/A N/A N/A ret N/A k N/A N/A cgi escape v True N/A N/A N/A Exception N/A e N/A N/A N/A ret N/A k N/A N/A cgi escape N/A repr v True N/A ret N/A to_json N/A N/A self indent sort_keys skipkeys N/A 2 True True N/A N/A encoder N/A ClasticJSONEncoder dev_mode True indent indent sort_keys sort_keys ensure_ascii False skipkeys skipkeys N/A N/A N/A encoder encode N/A N/A self to_dict N/A to_text N/A N/A self N/A N/A N/A lines N/A N/A %s - %s N/A N/A self code N/A self message N/A N/A self detail N/A N/A N/A N/A lines extend N/A N/A self detail N/A N/A self error_type N/A N/A N/A N/A lines extend N/A N/A Error type: %s N/A self error_type N/A N/A N/A join lines N/A to_html N/A N/A self N/A N/A N/A params N/A N/A self to_escaped_dict N/A lines N/A <!doctype html><html> <head><title>{code} - {message}</title></head> <body><h1>{message}</h1> N/A N/A params N/A detail N/A N/A N/A N/A lines append <p>{detail}</p> N/A N/A params N/A error_type N/A N/A N/A N/A N/A params N/A error_type startswith http N/A N/A N/A N/A lines append <p>Error type: <a target="_blank" href="{error_type}">{error_type}</a></p> N/A N/A N/A N/A lines append <p>Error type: {error_type}</p> N/A N/A N/A lines append </body></html> N/A N/A N/A N/A N/A join lines format params N/A to_xml N/A N/A self N/A N/A N/A params N/A N/A self to_escaped_dict N/A ret N/A N/A <http_error><code>{code}</code><message>{message}</message><detail>{detail}</detail><error_type>{error_type}</error_type></http_error> format params N/A ret N/A __repr__ N/A N/A self N/A N/A N/A cn N/A N/A self __class__ __name__ N/A N/A %s(message=%r) N/A cn N/A getattr self message N/A N/A BadRequest N/A HTTPException N/A N/A code 400 N/A message Bad Request N/A detail Your web client or proxy sent a request that this endpoint could not understand. N/A Unauthorized N/A BadRequest N/A N/A code 401 N/A message Authentication required N/A detail The endpoint could not verify that your client is authorized to access this resource. Check that your client is capable of authenticating and that the proper credentials were provided. N/A PaymentRequired N/A BadRequest N/A N/A HTTP cares about your paywall. N/A code 402 N/A message Payment required N/A detail This endpoint requires payment. Money doesn't grow on HTTPs, you know. N/A Forbidden N/A BadRequest N/A N/A code 403 N/A message Access forbidden N/A detail You don't have permission to access the requested resource. N/A NotFound N/A BadRequest N/A N/A code 404 N/A message Not found N/A detail The requested URL was not found on this server. __init__ N/A N/A self N/A args kwargs N/A N/A N/A self dispatch_state N/A N/A kwargs get dispatch_state None N/A N/A N/A N/A super NotFound self __init__ args kwargs N/A N/A MethodNotAllowed N/A BadRequest N/A N/A code 405 N/A message Method not allowed N/A detail The method used is not allowed for the requested URL. __init__ N/A N/A self allowed_methods N/A None args kwargs N/A N/A N/A self allowed_methods N/A set N/A allowed_methods N/A N/A N/A self allowed_methods N/A N/A method_list N/A sorted N/A self allowed_methods N/A N/A self detail N/A %s Allowed methods: %r N/A N/A self detail method_list N/A N/A N/A N/A super MethodNotAllowed self __init__ args kwargs N/A N/A NotAcceptable N/A BadRequest N/A N/A code 406 N/A message Available content not acceptable N/A detail The endpoint cannot generate a response acceptable by your client (as specified by your client's Accept header values.) N/A ProxyAuthenticationRequired N/A BadRequest N/A N/A code 407 N/A message Proxy authentication required N/A detail A proxy between your server and the client requires authentication to access this resource. N/A RequestTimeout N/A BadRequest N/A N/A code 408 N/A message Request timed out N/A detail The server cancelled the request because the client did not complete the request within the alotted time. N/A Conflict N/A BadRequest N/A N/A code 409 N/A message A conflict occurred N/A detail The endpoint cancelled the request due to a potential conflict with existing server state, such as a duplicate filename. N/A Gone N/A BadRequest N/A N/A code 410 N/A message Gone N/A detail The requested resource is no longer available on this server and there is no forwarding address. N/A LengthRequired N/A BadRequest N/A N/A code 411 N/A message Length required N/A detail A request for this resource is required to have a valid Content-Length header. N/A PreconditionFailed N/A BadRequest N/A N/A code 412 N/A message Precondition failed N/A detail A required precondition on the request for this resource failed positive evaluation. N/A RequestEntityTooLarge N/A BadRequest N/A N/A more like ErrorNameTooLong, amirite? N/A code 413 N/A message Request entity too large N/A detail The method/resource combination requested does not allow data to be transmitted, or the data volume exceeds the capacity limit. N/A RequestURITooLong N/A BadRequest N/A N/A ... shit. N/A code 414 N/A message Request URL too long N/A detail The length of the requested URL exceeds the limit for this endpoint/server. N/A UnsupportedMediaType N/A BadRequest N/A N/A code 415 N/A message Unsupported media type N/A detail The server does not support the media type transmitted in the request. Try a different media type or check your Content-Type header and try again. N/A RequestedRangeNotSatisfiable N/A BadRequest N/A N/A code 416 N/A message Requested range not satisfiable N/A detail The client sent a ranged request not fulfillable by this endpoint. N/A ExpectationFailed N/A BadRequest N/A N/A Can't. always. get. what you want. N/A code 417 N/A message Expectation failed N/A detail The server could not meet the requirements indicated in the request's Expect header(s). N/A ImATeapot N/A BadRequest N/A N/A Standards committees are known for their senses of humor. N/A code 418 N/A message I'm a teapot: short, stout. N/A detail This server is a teapot, not a coffee machine, and would like to apologize in advance if it is a Java machine. N/A UnprocessableEntity N/A BadRequest N/A N/A code 422 N/A message Unprocessable entity N/A detail The client sent a well-formed request, but the endpoint encountered other semantic errors within the data. N/A UpgradeRequired N/A BadRequest N/A N/A Used to upgrade connections (to TLS, etc., RFC2817). Also WebSockets. N/A code 426 N/A message Upgrade required N/A detail The server requires an upgraded connection to continue. This is expected behavior when establishing certain secure connections or WebSockets. N/A PreconditionRequired N/A BadRequest N/A N/A code 428 N/A message Precondition required N/A detail This endpoint requires a request with a conditional clause. Try resubmitting the request with an 'If-Match' or  'If-Unmodified-Since' HTTP header. N/A TooManyRequests N/A BadRequest N/A N/A code 429 N/A message Too many requests N/A detail The client has exceeded the allowed rate of requests for this resource. Please wait and try again later. N/A RequestHeaderFieldsTooLarge N/A BadRequest N/A N/A code 431 N/A message Request header fields too large N/A detail One or more HTTP header fields exceeded the maximum allowed size. N/A UnavailableForLegalReasons N/A BadRequest N/A N/A Sit back and enjoy the Bradbury N/A code 451 N/A message Unavailable for legal reasons N/A detail The resource requested is unavailable for legal reasons. For instance, this could be due to intellectual property claims related to copyright or trademark, or government-mandated censorship. N/A InternalServerError N/A HTTPException N/A N/A code 500 N/A message Internal server error N/A detail The server encountered an internal error and was unable to complete your request. __init__ N/A N/A self detail N/A None kwargs N/A N/A N/A self exc_info N/A N/A kwargs pop exc_info None N/A N/A N/A N/A super InternalServerError self __init__ detail kwargs N/A N/A N/A self error_type None N/A N/A N/A N/A exc_type_name N/A N/A self exc_info exc_type N/A exc_type N/A getattr exceptions exc_type_name N/A N/A self error_type N/A STDLIB_EXC_URL N/A exc_type __name__ N/A N/A N/A N/A N/A to_dict N/A N/A self N/A N/A N/A ret N/A N/A N/A super InternalServerError self to_dict N/A N/A N/A N/A ret N/A exc_info N/A N/A N/A self exc_info to_dict N/A N/A N/A N/A N/A ret N/A exc_info None N/A ret N/A N/A NotImplemented N/A InternalServerError N/A N/A code 501 N/A message Response behavior not implemented N/A detail The resource requested has either not been implemented or does not yet support the action requested by the client. N/A BadGateway N/A InternalServerError N/A N/A code 502 N/A message Bad gateway N/A detail The endpoint received an invalid response from an upstream server while processing your request. Check that all upstream dependencies are properly configured and running. N/A ServiceUnavailable N/A InternalServerError N/A N/A code 503 N/A message Service or resource unavailable N/A detail The service or resource requested is temporarily unavailable due to maintenance downtime or capacity issues. Please try again later. N/A GatewayTimeout N/A InternalServerError N/A N/A code 504 N/A message Gateway timeout N/A detail The endpoint timed out while waiting for a response from an upstream server. check that all upstream dependencies are properly configured and running. N/A HTTPVersionNotSupported N/A InternalServerError N/A N/A code 505 N/A message HTTP version not supported N/A detail The endpoint does not support the version of HTTP specified by the request. N/A ErrorHandler N/A object N/A N/A wsgi_wrapper None N/A not_found_type NotFound N/A method_not_allowed_type MethodNotAllowed N/A exc_info_type ExceptionInfo N/A server_error_type InternalServerError __init__ N/A N/A self N/A kwargs N/A N/A         Use reraise_uncaught=True if you want uncaught exceptions to be
        handled by the WSGI server rather than by this Clastic error handler.
         N/A N/A self reraise_uncaught N/A N/A kwargs get reraise_uncaught N/A render_error N/A N/A self request _error N/A kwargs N/A N/A best_match N/A N/A N/A request accept_mimetypes best_match MIME_SUPPORT_MAP N/A N/A N/A _error adapt best_match N/A _error N/A uncaught_to_response N/A N/A self _application _route N/A kwargs N/A N/A N/A self reraise_uncaught N/A N/A N/A eh N/A _application error_handler N/A exc_info N/A N/A N/A eh exc_info_type from_current N/A N/A N/A eh server_error_type N/A repr exc_info exc_info exc_info source_route _route N/A N/A ContextualInternalServerError N/A InternalServerError N/A N/A     An Internal Server Error with a full contextual view of the
    exception, mostly for development (non-production) purposes.

    # NOTE: The dict returned by to_dict is not JSON-encodable with
    the default encoder. It relies on the ClasticJSONEncoder currently
    used in the InternalServerError class.
     __init__ N/A N/A self N/A a kw N/A N/A N/A self request N/A N/A kw get request N/A N/A self hide_internal_frames N/A N/A kw pop hide_internal_frames True N/A N/A N/A N/A super ContextualInternalServerError self __init__ a kw N/A to_dict N/A N/A self N/A a kw N/A N/A ret N/A N/A N/A super ContextualInternalServerError self to_dict a kw N/A N/A ret N/A exc_info N/A exc_info N/A getattr self exc_info None N/A N/A exc_info N/A N/A ret N/A exc_tb N/A N/A N/A exc_info tb_info to_dict N/A N/A i frame N/A enumerate N/A exc_tb N/A frames N/A N/A N/A self hide_internal_frames N/A N/A N/A N/A N/A frame N/A line N/A N/A frame N/A module_path <string> N/A N/A N/A frame N/A is_hidden True N/A N/A N/A N/A N/A frame N/A module_name clastic.sinter N/A N/A frame N/A func_name inject N/A N/A N/A frame N/A is_hidden True N/A N/A frame N/A id i N/A N/A N/A pre_start_lineno N/A N/A N/A frame N/A pre_lines N/A 0 N/A lineno N/A N/A N/A IndexError N/A N/A pre_start_lineno 1 N/A N/A frame N/A pre_start_lineno pre_start_lineno N/A N/A frame N/A post_start_lineno N/A N/A frame N/A lineno 1 N/A N/A N/A last_frame N/A N/A exc_tb N/A frames N/A -1 N/A N/A N/A N/A last_frame None N/A eid N/A is_email clastic_version_info exc_type exc_value exc_tb last_frame exc_tb_str server_time server_time_utc python False 0.4.1dev N/A exc_info exc_type N/A exc_info exc_msg exc_tb last_frame N/A str N/A exc_info tb_info N/A str N/A N/A N/A datetime datetime now N/A str N/A N/A N/A datetime datetime utcnow N/A executable version path N/A sys executable N/A N/A N/A sys version replace N/A sys path N/A request N/A self request N/A request N/A N/A N/A eid N/A req N/A path full_url method abs_path url_params cookies headers files N/A request path N/A request url N/A request method N/A request path N/A request args N/A request cookies N/A request headers N/A request files N/A N/A N/A ret update eid N/A ret N/A to_html N/A N/A self N/A a kw N/A N/A render_ctx N/A N/A self to_dict N/A N/A N/A CONTEXTUAL_ENV render 500.html render_ctx N/A N/A ContextualNotFound N/A NotFound N/A __init__ N/A N/A self N/A a kw N/A N/A N/A self request N/A N/A kw get request N/A N/A self application N/A N/A kw get application N/A N/A self dispatch_state N/A N/A kw get dispatch_state N/A N/A N/A N/A super ContextualNotFound self __init__ a kw N/A to_dict N/A N/A self N/A N/A N/A 
        One design ideal, for showing which routes have been hit:
        [{'route': ('pattern', 'endpoint', 'render_func'),
          'path_matched': False,
          'method_matched': False,
          'slash_matched': False}]
         N/A ret N/A N/A N/A super ContextualNotFound self to_dict N/A app N/A self application N/A N/A app N/A N/A ret N/A route_results N/A N/A route N/A app routes N/A N/A cur N/A pattern regex N/A route pattern N/A N/A route regex pattern N/A N/A route methods N/A N/A N/A cur N/A methods N/A sorted N/A route methods N/A N/A N/A route_results append cur N/A N/A ret N/A routes route_results N/A N/A self request N/A N/A N/A ret N/A request _req N/A N/A N/A _req N/A path N/A N/A self request path N/A N/A _req N/A method N/A N/A self request method N/A ret N/A to_html N/A N/A self N/A a kw N/A N/A render_ctx N/A N/A self to_dict N/A N/A N/A CONTEXTUAL_ENV render 404.html render_ctx N/A N/A ContextualErrorHandler N/A ErrorHandler N/A N/A exc_info_type ContextualExceptionInfo N/A server_error_type ContextualInternalServerError N/A not_found_type ContextualNotFound __init__ N/A N/A self N/A a kw N/A N/A N/A self hide_internal_frames N/A N/A kw pop hide_internal_frames True N/A N/A N/A N/A super ContextualErrorHandler self __init__ a kw N/A uncaught_to_response N/A N/A self _application _route N/A kwargs N/A N/A eh N/A _application error_handler N/A exc_info N/A N/A N/A eh exc_info_type from_current N/A SEType N/A eh server_error_type N/A N/A SEType N/A repr exc_info exc_info exc_info source_route _route request N/A N/A kwargs get request hide_internal_frames N/A self hide_internal_frames N/A N/A _REPLDebuggedApplication N/A DebuggedApplication N/A __init__ N/A N/A self app N/A kwargs N/A N/A N/A kwargs N/A evalex True N/A N/A N/A N/A super _REPLDebuggedApplication self __init__ app kwargs N/A N/A REPLErrorHandler N/A ContextualErrorHandler N/A N/A wsgi_wrapper _REPLDebuggedApplication uncaught_to_response N/A N/A self N/A kwargs N/A N/A lolololol N/A N/A N/A N/A N/A _module_init