Skip to content

ResponseFrame

autogen.beta.network.transport.frames.ResponseFrame dataclass #

ResponseFrame(request_id, ok, result=None, error_code='', error_message='')

hub → client: result of a :class:RequestFrame.

request_id echoes the request. ok is True on success — result then carries the JSON-compatible return value (a dict, a list of dicts, a scalar, or None). On failure ok is False and error_code / error_message describe the rejection; error_code mirrors :class:ErrorFrame.code ("not_found", "access_denied", "protocol_error", "auth_failed", …) so the client can re-raise the matching :class:NetworkError subclass.

kind class-attribute #

kind = 'response'

request_id instance-attribute #

request_id

ok instance-attribute #

ok

result class-attribute instance-attribute #

result = None

error_code class-attribute instance-attribute #

error_code = ''

error_message class-attribute instance-attribute #

error_message = ''