faust.web.exceptions¶
HTTP and related errors.
-
exception
faust.web.exceptions.WebError(detail: str = None, *, code: int = None, **extra_context: Any) → None[source]¶ Web related error.
Web related errors will have a status
code, and adetailfor the human readable error string.It may also keep
extra_context.-
detail= 'Default not set on class'¶
-
code= None¶
-
-
exception
faust.web.exceptions.ServerError(detail: str = None, *, code: int = None, **extra_context: Any) → None[source]¶ Internal Server Error (500).
-
code= 500¶
-
detail= 'Internal server error.'¶
-
-
exception
faust.web.exceptions.ValidationError(detail: str = None, *, code: int = None, **extra_context: Any) → None[source]¶ Invalid input in POST data (400).
-
code= 400¶
-
detail= 'Invalid input.'¶
-
-
exception
faust.web.exceptions.ParseError(detail: str = None, *, code: int = None, **extra_context: Any) → None[source]¶ Malformed request (400).
-
code= 400¶
-
detail= 'Malformed request.'¶
-
-
exception
faust.web.exceptions.AuthenticationFailed(detail: str = None, *, code: int = None, **extra_context: Any) → None[source]¶ Incorrect authentication credentials (401).
-
code= 401¶
-
detail= 'Incorrect authentication credentials'¶
-
-
exception
faust.web.exceptions.NotAuthenticated(detail: str = None, *, code: int = None, **extra_context: Any) → None[source]¶ Authentication credentials were not provided (401).
-
code= 401¶
-
detail= 'Authentication credentials were not provided.'¶
-
-
exception
faust.web.exceptions.PermissionDenied(detail: str = None, *, code: int = None, **extra_context: Any) → None[source]¶ No permission to perform action (403).
-
code= 403¶
-
detail= 'You do not have permission to perform this action.'¶
-
-
exception
faust.web.exceptions.NotFound(detail: str = None, *, code: int = None, **extra_context: Any) → None[source]¶ Resource not found (404).
-
code= 404¶
-
detail= 'Not found.'¶
-
-
exception
faust.web.exceptions.MethodNotAllowed(detail: str = None, *, code: int = None, **extra_context: Any) → None[source]¶ HTTP Method not allowed (405).
-
code= 405¶
-
detail= 'Method not allowed.'¶
-
-
exception
faust.web.exceptions.NotAcceptable(detail: str = None, *, code: int = None, **extra_context: Any) → None[source]¶ Not able to satisfy the request
Acceptheader (406).-
code= 406¶
-
detail= 'Could not satisfy the request Accept header.'¶
-