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