Syntax
enum otCoapCode
{
OT_COAP_CODE_EMPTY = OT_COAP_CODE(0, 0),
OT_COAP_CODE_GET = OT_COAP_CODE(0, 1),
OT_COAP_CODE_POST = OT_COAP_CODE(0, 2),
OT_COAP_CODE_PUT = OT_COAP_CODE(0, 3),
OT_COAP_CODE_DELETE = OT_COAP_CODE(0, 4),
OT_COAP_CODE_RESPONSE_MIN = OT_COAP_CODE(2, 0),
OT_COAP_CODE_CREATED = OT_COAP_CODE(2, 1),
OT_COAP_CODE_DELETED = OT_COAP_CODE(2, 2),
OT_COAP_CODE_VALID = OT_COAP_CODE(2, 3),
OT_COAP_CODE_CHANGED = OT_COAP_CODE(2, 4),
OT_COAP_CODE_CONTENT = OT_COAP_CODE(2, 5),
OT_COAP_CODE_CONTINUE = OT_COAP_CODE(2, 31),
OT_COAP_CODE_BAD_REQUEST = OT_COAP_CODE(4, 0),
OT_COAP_CODE_UNAUTHORIZED = OT_COAP_CODE(4, 1),
OT_COAP_CODE_BAD_OPTION = OT_COAP_CODE(4, 2),
OT_COAP_CODE_FORBIDDEN = OT_COAP_CODE(4, 3),
OT_COAP_CODE_NOT_FOUND = OT_COAP_CODE(4, 4),
OT_COAP_CODE_METHOD_NOT_ALLOWED = OT_COAP_CODE(4, 5),
OT_COAP_CODE_NOT_ACCEPTABLE = OT_COAP_CODE(4, 6),
OT_COAP_CODE_REQUEST_INCOMPLETE = OT_COAP_CODE(4, 8),
OT_COAP_CODE_PRECONDITION_FAILED = OT_COAP_CODE(4, 12),
OT_COAP_CODE_REQUEST_TOO_LARGE = OT_COAP_CODE(4, 13),
OT_COAP_CODE_UNSUPPORTED_FORMAT = OT_COAP_CODE(4, 15),
OT_COAP_CODE_INTERNAL_ERROR = OT_COAP_CODE(5, 0),
OT_COAP_CODE_NOT_IMPLEMENTED = OT_COAP_CODE(5, 1),
OT_COAP_CODE_BAD_GATEWAY = OT_COAP_CODE(5, 2),
OT_COAP_CODE_SERVICE_UNAVAILABLE = OT_COAP_CODE(5, 3),
OT_COAP_CODE_GATEWAY_TIMEOUT = OT_COAP_CODE(5, 4),
OT_COAP_CODE_PROXY_NOT_SUPPORTED = OT_COAP_CODE(5, 5),
};