OpenQuizz
Une application de gestion des contenus pédagogiques
werkzeug.exceptions Namespace Reference

Data Structures

class  _RetryAfter
 
class  Aborter
 
class  BadGateway
 
class  BadHost
 
class  BadRequest
 
class  ClientDisconnected
 
class  Conflict
 
class  ExpectationFailed
 
class  FailedDependency
 
class  Forbidden
 
class  GatewayTimeout
 
class  Gone
 
class  HTTPException
 
class  HTTPVersionNotSupported
 
class  ImATeapot
 
class  InternalServerError
 
class  LengthRequired
 
class  Locked
 
class  MethodNotAllowed
 
class  NotAcceptable
 
class  NotFound
 
class  NotImplemented
 
class  PreconditionFailed
 
class  PreconditionRequired
 
class  RequestedRangeNotSatisfiable
 
class  RequestEntityTooLarge
 
class  RequestHeaderFieldsTooLarge
 
class  RequestTimeout
 
class  RequestURITooLarge
 
class  SecurityError
 
class  ServiceUnavailable
 
class  TooManyRequests
 
class  Unauthorized
 
class  UnavailableForLegalReasons
 
class  UnprocessableEntity
 
class  UnsupportedMediaType
 

Functions

def abort (status, *args, **kwargs)
 

Variables

 default_exceptions
 
 BadRequestKeyError
 

Function Documentation

◆ abort()

def werkzeug.exceptions.abort (   status,
args,
**  kwargs 
)
Raises an :py:exc:`HTTPException` for the given status code or WSGI
application.

If a status code is given, it will be looked up in the list of
exceptions and will raise that exception.  If passed a WSGI application,
it will wrap it in a proxy WSGI exception and raise that::

   abort(404)  # 404 Not Found
   abort(Response('Hello World'))

Variable Documentation

◆ BadRequestKeyError

BadRequestKeyError

◆ default_exceptions

default_exceptions