StatusResponse.msg

Overview

StatusResponse.msg is a common message type used to indicate the outcome of a service call. It pairs a numeric code (from StatusCode.msg) with a human-readable message.

Fields

Field

Type

Description

code

uint8

One of the status codes defined in StatusCode.msg.

message

string

A human-readable description of the outcome.

Usage

  • Most service definitions in this package return a StatusResponse as part of their response, allowing callers to check success uniformly.

  • A call is successful when code equals StatusCode.OK (0); otherwise message usually carries an explanation.