SDK docs menu

class · extends Exception

HardLabsError

The API refused a request or couldn't answer it.

from hardlabs_sdk import HardLabsError

The message is the server's explanation.

Attributes

statusint
The HTTP status, or 0 when the server couldn't be reached.
codestr | None
A machine-readable error code, when the server gives one.
bodydict
The server's full error response.