hackthebox.errors — HTB API Client errors
- exception hackthebox.errors.ApiError[source]
The API responded in an unexpected way
- with_traceback()
Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.
- exception hackthebox.errors.AuthenticationException[source]
An error authenticating to the API
- with_traceback()
Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.
- exception hackthebox.errors.CacheException[source]
There was an issue with the token cache
- with_traceback()
Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.
- exception hackthebox.errors.CannotSwitchWithActive[source]
Failed to switch VPN because the user has an active machine
- with_traceback()
Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.
- exception hackthebox.errors.HtbException[source]
Base exception class for hackthebox
- with_traceback()
Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.
- exception hackthebox.errors.IncorrectArgumentException(reason: str)[source]
An incorrectly formatted argument was passed
- with_traceback()
Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.
- exception hackthebox.errors.IncorrectFlagException[source]
An incorrect flag was submitted
- with_traceback()
Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.
- exception hackthebox.errors.IncorrectOTPException[source]
An OTP was given but not accepted
- with_traceback()
Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.
- exception hackthebox.errors.MachineException[source]
An error associated with a machine
- with_traceback()
Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.
- exception hackthebox.errors.MissingEmailException[source]
An email was not given where it was required
- with_traceback()
Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.
- exception hackthebox.errors.MissingOTPException[source]
An OTP was not given but 2FA is enabled
- with_traceback()
Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.
- exception hackthebox.errors.MissingPasswordException[source]
A password was not given where it was required
- with_traceback()
Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.
- exception hackthebox.errors.NoDockerException[source]
A challenge was ‘started’ when no Docker is available
- with_traceback()
Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.
- exception hackthebox.errors.NoDownloadException[source]
A challenge was ‘downloaded’ when no download is available
- with_traceback()
Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.
- exception hackthebox.errors.NotFoundException[source]
The API returned a 404 response for this request
- with_traceback()
Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.
- exception hackthebox.errors.RateLimitException(message)[source]
An internal ratelimit to prevent spam was violated
- with_traceback()
Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.
- exception hackthebox.errors.TooManyResetAttempts[source]
Error for too many reset attempts
- with_traceback()
Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.