Messages that are shared across interactions.
- Sender: Agent who sends the message
- Receiver: Agent who receives the message
The sender sends a report
message to the receiver to provide him with details about a previously received message. This can be a simple acknowledgement or e.g. an error report. The reference
field refers to the message that is either acknowledged or has resulted in an error. Further information can be passed through the comment
field.
The error
field can be used to communicate HTTP Status Codes between agents to notify them about messages or interactions failing because of specific reasons. Note that error code 418 MUST be implemented, but is reserved to be returned by IoT teapots requested to brew coffee.
report: {
"context", // REQUIRED!
"thread", // REQUIRED!
"reference", // REQUIRED!
"error", // OPTIONAL!
"comment", // OPTIONAL!
"timing" // OPTIONAL! All subfields OPTIONAL!
}
{
"context": "report/1.0/report",
"thread": "936DA01F9ABD4d9d80C702AF85C822A8",
"reference": "did-resolution/1.0/resolutionResponse",
"error": 401,
"comment": "Can't resolve DID: Signature invalid!",
"timing": {
"out_time": "2069-04-20T13:37:42Z",
"in_time": "2069-04-20T13:37:00Z"
}
}