from moto.core.exceptions import RESTError
class KinesisvideoClientError(RESTError):
code = 400
class ResourceNotFoundException(KinesisvideoClientError):
def __init__(self) -> None:
self.code = 404
super().__init__(
"ResourceNotFoundException",
"The requested stream is not found or not active.",
)
class ResourceInUseException(KinesisvideoClientError):
def __init__(self, message: str):
self.code = 400
super().__init__("ResourceInUseException", message)