CoAP response codes indicate the result of a CoAP request made by the modem to a cloud endpoint.
A CoAP response code is a single integer that encodes both a class and a detail value using
the integer = (class × 32) + detail formula conventionally written as
c.dd. A response is successful when the class is 2. Any
other class indicates an error.
To decode an integer code, divide it by 32 to get the class. The remainder is the detail.
For example, 129 = (4 × 32) + 1 gives 4.01
Unauthorized.
The <coap_code> parameter and its defined values are the following:
- <coap_code>
- Integer. CoAP response code.