mirror of
https://github.com/obgm/libcoap.git
synced 2026-11-06 01:42:53 +03:00
When a server cleanly closes down (calls coap_free_context()), when a resource gets deleted, a 4.04 message is sent out (not when using coap_persist(3)) for any active observe subscriptions. If a server knows it is going to be restarted, then there is no need to send out a observe failed message. When deleting a resource when normally running, it is correct to send out a 4.04 Not Found response as the resource has genuinely gone away. However, when the server is cleaning shutting down, it is better to use 5.03 Service Unavailable to indicate the situation may be temporary.