The CoAP protocol defines a number of response codes that servers use to express the
result of a client request. The CoapClient Connector makes these available in the
coap.response.code
inbound-property. The value of this property is a
String containing one of the property values from the table below.
Table 1. coap.response.code values
property value | CoAP response meaning |
---|---|
2.01 | CREATED |
2.02 | DELETED |
2.03 | VALID |
2.04 | CHANGED |
2.05 | CONTENT |
4.31 | CONTINUE |
4.00 | BAD_REQUEST |
4.01 | UNAUTHORIZED |
4.02 | BAD_OPTION |
4.03 | FORBIDDEN |
4.04 | NOT_FOUND |
4.05 | METHOD_NOT_ALLOWED |
4.06 | NOT_ACCEPTABLE |
4.08 | REQUEST_ENTITY_INCOMPLETE |
4.12 | PRECONDITION_FAILED |
4.13 | REQUEST_ENTITY_TOO_LARGE |
4.15 | UNSUPPORTED_CONTENT_FORMAT |
5.00 | INTERNAL_SERVER_ERROR |
5.01 | NOT_IMPLEMENTED |
5.02 | BAD_GATEWAY |
5.03 | SERVICE_UNAVAILABLE |
5.04 | GATEWAY_TIMEOUT |
5.05 | PROXY_NOT_SUPPORTED |