http_auth_exception
mlte/backend/api/auth/http_auth_exception.py
Exception used for authentication issues.
HTTPAuthException
Bases: HTTPException
Exception used for HTTP authentication issues.
Source code in mlte/backend/api/auth/http_auth_exception.py
47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 |
|
__init__(status_code=codes.UNAUTHORIZED, error='', error_decription='')
Constructor, calls based class with predefined params.
Source code in mlte/backend/api/auth/http_auth_exception.py
50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 |
|
HTTPTokenException
Bases: HTTPException
Exception used for issues when a token is requested.
Source code in mlte/backend/api/auth/http_auth_exception.py
25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 |
|
__init__(status_code=codes.BAD_REQUEST, error='', error_decription='')
Constructor, calls based class with predefined params.
Source code in mlte/backend/api/auth/http_auth_exception.py
28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 |
|
json_content_exception_handler(request, exc)
Exception handler that doesn't add the "details" key to a JSON response.
Source code in mlte/backend/api/auth/http_auth_exception.py
16 17 18 19 20 21 22 |
|