commit | 8662b69685c075b248f5ac93e0b8b237a25f6515 | [log] [tgz] |
---|---|---|
author | Michael Scott <michael.scott@linaro.org> | Thu Aug 17 13:10:59 2017 -0700 |
committer | Anas Nashif <nashif@linux.intel.com> | Mon Aug 21 08:38:17 2017 -0400 |
tree | 7701ace189535770ef556bba1e8e13b0d54a661a | |
parent | d42af5914e744207d70bf310f50fc7ba93de7ede [diff] |
net: lwm2m: return BAD_REQUEST when object create fails Per LwM2M spec (7.3.2.4 Operation on Object): "If the payload (New Value) conveys an Object Instance ID in conflict with one already present in the LwM2M Client, the complete request MUST be rejected and a "Bad Request" error code MUST be sent back." Let's do that. Signed-off-by: Michael Scott <michael.scott@linaro.org>