OPC Foundation
  • Documents
  • NodeSets
  • Search
5.4.2.12 StatusCode

StatusCode values shall be encoded as a JSON object with the fields defined in Table 36.

Table 36 – JSON Object Definition for a StatusCode

Name

Description

Code

The numeric code encoded as a JSON number.

The Code is omitted if the numeric code is 0 (Good).

Symbol

The string literal associated with the numeric code encoded as JSON string.

e.g. 0x80AB0000 has the associated literal “BadInvalidArgument”.

Any InfoBits in the StatusCode are ignored when looking up the symbol.

If the string literal is not known to the encoder the field is omitted.

The field is omitted in the CompactEncoding.

The field is omitted if the numeric code is 0 (Good).

The recommended string literals are defined in A.2.

Please report errors or issues with the site to webmaster.

Copyright © 2025 - OPC Foundation