labapi.exceptions.AuthenticationError#

exception labapi.exceptions.AuthenticationError(
message: str,
error_code: int | None = None,
)[source]#

Missing credentials or failed authentication flow.

error_code is set when the error originates from the LabArchives API (e.g. 4506 invalid akid, 4514 bad login, 4520 bad signature, 4533 session timeout). It is None for locally-detected credential errors.