<filename>pynite/errors.py
class BaseError(Exception):
    '''The base class for all errors.'''

    def __init__(self, code, error):
        pass


class NotResponding(BaseError):
    '''Raised when the Fortnite API is down.'''

    def __init__(self):
        self.code = 504
        self.error = 'API request timed out, please be patient.'
        super().__init__(self.code, self.error)


class Unauthorized(BaseError):
    '''Raised when an invalid or blocked API key is passed'''

    def __init__(self):
        self.code = 401
        self.error = 'Invalid API key.'
        super().__init__(self.code, self.error)


class NotFound(BaseError):
    '''Raised when an invalid platform/name combo has been passed'''

    def __init__(self):
        self.code = 404
        self.error = 'No profile with this platform/name combination has been found.'
        super().__init__(self.code, self.error)

class NoGames(BaseError):
    '''Raised when a player has not played a certain game mode'''

    def __init__(self, mode):
        self.code = 404
        self.error = 'This player has not played the {} gamemode yet.'.format(mode)
        super().__init__(self.code, self.error)


class UnknownError(BaseError):
    '''Raised when an unknown case or error has occured.'''

    def __init__(self, mode):
        self.code = 404
        self.error = 'A wrapper-breaking error has just occured. Please contact us.'
        super().__init__(self.code, self.error)

<filename>pynite/errors.py
class BaseError(Exception):
    '''The base class for all errors.'''

    def __init__(self, code, error):
        pass


class NotResponding(BaseError):
    '''Raised when the Fortnite API is down.'''

    def __init__(self):
        self.code = 504
        self.error = 'API request timed out, please be patient.'
        super().__init__(self.code, self.error)


class Unauthorized(BaseError):
    '''Raised when an invalid or blocked API key is passed'''

    def __init__(self):
        self.code = 401
        self.error = 'Invalid API key.'
        super().__init__(self.code, self.error)


class NotFound(BaseError):
    '''Raised when an invalid platform/name combo has been passed'''

    def __init__(self):
        self.code = 404
        self.error = 'No profile with this platform/name combination has been found.'
        super().__init__(self.code, self.error)

class NoGames(BaseError):
    '''Raised when a player has not played a certain game mode'''

    def __init__(self, mode):
        self.code = 404
        self.error = 'This player has not played the {} gamemode yet.'.format(mode)
        super().__init__(self.code, self.error)


class UnknownError(BaseError):
    '''Raised when an unknown case or error has occured.'''

    def __init__(self, mode):
        self.code = 404
        self.error = 'A wrapper-breaking error has just occured. Please contact us.'
        super().__init__(self.code, self.error)

The base class for all errors. Raised when the Fortnite API is down. Raised when an invalid or blocked API key is passed Raised when an invalid platform/name combo has been passed Raised when a player has not played a certain game mode Raised when an unknown case or error has occured.