Flows that listen on CoAP server resources and process requests can set the
coap.response.code
outbound property to specify what CoAP response is to be returned to
the client. The value of this property must be a String containing one of the property
values in the table below.
CoAP response | property value |
---|---|
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 |