← Back to the chapter · Next detail →
Technical detail · CoAP Message Exchanges
When CoAP sends Reset or ignores an ACK
CoAP Reset (RST) concerns unusable message-exchange state, while application response codes report the result of a valid request.
RST applies when a datagram, an individual transport message, is syntactically recognisable but the endpoint lacks the exchange context needed to process it. For example, a rebooted node can receive a Confirmable (CON) Observe notification it no longer recognises; Observe supplies later updates to a resource. A CON requests acknowledgement; an empty CON used as a ping can also produce RST. The Message ID identifies a message for duplicate detection and receipt matching. A new Message ID alone is not grounds for rejection: valid new requests normally have one. An unexpected acknowledgement (ACK) is silently ignored.
These rules prevent ordinary application errors from being treated as unusable message state. An immediately available missing-resource result can acknowledge the valid request and report 4.04 Not Found in the same reply.