Response codes

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 valueCoAP response meaning
2.01CREATED
2.02DELETED
2.03VALID
2.04CHANGED
2.05CONTENT
4.31CONTINUE
4.00BAD_REQUEST
4.01UNAUTHORIZED
4.02BAD_OPTION
4.03FORBIDDEN
4.04NOT_FOUND
4.05METHOD_NOT_ALLOWED
4.06NOT_ACCEPTABLE
4.08REQUEST_ENTITY_INCOMPLETE
4.12PRECONDITION_FAILED
4.13REQUEST_ENTITY_TOO_LARGE
4.15UNSUPPORTED_CONTENT_FORMAT
5.00INTERNAL_SERVER_ERROR
5.01NOT_IMPLEMENTED
5.02BAD_GATEWAY
5.03SERVICE_UNAVAILABLE
5.04GATEWAY_TIMEOUT
5.05PROXY_NOT_SUPPORTED