Skip to main content

classic.v1

This envelope maps semantic requests, responses, and events onto a flat JSON object.

Constants​

FieldValue
version1

Frame shapes​

KindDiscriminatorID / correlationPayloadError
eventeventiddata—
requestmethodidparams—
responseresponse—resulterror

Structural discrimination follows declaration order: event → request → response.

Errors​

The error code space accepts any non-zero integer. These values are conventions minted by the deployed implementation:

NameCodeDescription
unknown-1Unclassified failure.
bad_request400The request is invalid.
internal_server_error500The handler failed internally.
not_implemented501The requested operation is not implemented.

Error objects use code, message, and the optional any data field.

For frozen compatibility, a response may contain both result and error, or neither field. When both are present, the error determines the semantic outcome.