errors.OperationNotAllowedError

Raised when an operation is not permitted in the client’s current state.

Usage

Source

errors.OperationNotAllowedError()

For example, calling an API before the base URL has been set, or before a successful login.