Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Update error response format

...

Request
intOperation code
intRequest id, generated by client and returned as-is in response
...Operation-specific data


0 for success error code is not 0
Response
intType = 0
intRequest id
uuid or nullTrace id (null for success)
intError code (when trace id is not null)
stringError message (when trace id is not null)
string or nullError stack trace (when trace id is not null)
map or nullError details (when trace id is not null)
...Operation-specific data (when trace id is null)

Request or response without operation-specific data is called basic request or basic response below.

...