bedrock.exceptions.unauthorised_exception
1from .bedrock_exception import BedrockException 2 3 4class UnauthorisedException(BedrockException): # pragma: unit 5 """ 6 Throw this exception when the client is not authorised to access a resource because it has not provided valid credentials. 7 8 Default HTTP code: 401. 9 """ 10 def __init__(self, message="Unauthorised", exception=None): 11 super().__init__(message, exception, error_code=401)