from pydantic import BaseModel


class BaseError(Exception):
    message: str = "Internal error ocurred"
    status_code: int = 500

    def __init__(self, message=None, status_code=None):
        self.message = message or self.message
        self.status_code = status_code or self.status_code
        super().__init__(message)

    def dict(self):
        return {
            "message": self.message
        }


class NotFound(BaseError):
    message = "Not found"
    status_code = 404

2d451f1659f343b4b02ebfd1152bb97854da291e
<mask token>


class BaseError(Exception):
    message: str = 'Internal error ocurred'
    status_code: int = 500
    <mask token>
    <mask token>


class NotFound(BaseError):
    message = 'Not found'
    status_code = 404

<mask token>


class BaseError(Exception):
    message: str = 'Internal error ocurred'
    status_code: int = 500

    def __init__(self, message=None, status_code=None):
        self.message = message or self.message
        self.status_code = status_code or self.status_code
        super().__init__(message)
    <mask token>


class NotFound(BaseError):
    message = 'Not found'
    status_code = 404

<mask token>


class BaseError(Exception):
    message: str = 'Internal error ocurred'
    status_code: int = 500

    def __init__(self, message=None, status_code=None):
        self.message = message or self.message
        self.status_code = status_code or self.status_code
        super().__init__(message)

    def dict(self):
        return {'message': self.message}


class NotFound(BaseError):
    message = 'Not found'
    status_code = 404

from pydantic import BaseModel


class BaseError(Exception):
    message: str = 'Internal error ocurred'
    status_code: int = 500

    def __init__(self, message=None, status_code=None):
        self.message = message or self.message
        self.status_code = status_code or self.status_code
        super().__init__(message)

    def dict(self):
        return {'message': self.message}


class NotFound(BaseError):
    message = 'Not found'
    status_code = 404

from pydantic import BaseModel


class BaseError(Exception):
    message: str = "Internal error ocurred"
    status_code: int = 500

    def __init__(self, message=None, status_code=None):
        self.message = message or self.message
        self.status_code = status_code or self.status_code
        super().__init__(message)

    def dict(self):
        return {
            "message": self.message
        }


class NotFound(BaseError):
    message = "Not found"
    status_code = 404
