case OC_EH_PROXY_NOT_SUPPORTED:
result = OC_STACK_PROXY_NOT_SUPPORTED;
break;
+ case OC_EH_BAD_REQ:
+ result = OC_STACK_INVALID_QUERY;
+ break;
+ case OC_EH_UNAUTHORIZED_REQ:
+ result = OC_STACK_UNAUTHORIZED_REQ;
+ break;
+ case OC_EH_BAD_OPT:
+ result = OC_STACK_INVALID_OPTION;
+ break;
+ case OC_EH_TOO_LARGE:
+ result = OC_STACK_TOO_LARGE_REQ;
+ break;
+ case OC_EH_NOT_ACCEPTABLE:
+ result = OC_STACK_NOT_ACCEPTABLE;
+ break;
+ case OC_EH_METHOD_NOT_ALLOWED:
+ result = OC_STACK_METHOD_NOT_ALLOWED;
+ break;
default:
result = OC_STACK_ERROR;
}