Anjay Lite
Loading...
Searching...
No Matches
Data model handlers error codes

Macros

#define ANJ_DM_ERR_BAD_REQUEST   (-(int) ANJ_COAP_CODE_BAD_REQUEST)
 
#define ANJ_DM_ERR_UNAUTHORIZED   (-(int) ANJ_COAP_CODE_UNAUTHORIZED)
 
#define ANJ_DM_ERR_NOT_FOUND   (-(int) ANJ_COAP_CODE_NOT_FOUND)
 
#define ANJ_DM_ERR_METHOD_NOT_ALLOWED    (-(int) ANJ_COAP_CODE_METHOD_NOT_ALLOWED)
 
#define ANJ_DM_ERR_INTERNAL   (-(int) ANJ_COAP_CODE_INTERNAL_SERVER_ERROR)
 
#define ANJ_DM_ERR_NOT_IMPLEMENTED   (-(int) ANJ_COAP_CODE_NOT_IMPLEMENTED)
 
#define ANJ_DM_ERR_SERVICE_UNAVAILABLE    (-(int) ANJ_COAP_CODE_SERVICE_UNAVAILABLE)
 

Detailed Description

Error values that may be returned from data model handlers.

Macro Definition Documentation

◆ ANJ_DM_ERR_BAD_REQUEST

#define ANJ_DM_ERR_BAD_REQUEST   (-(int) ANJ_COAP_CODE_BAD_REQUEST)

Request sent by the LwM2M Server was malformed or contained an invalid value.

◆ ANJ_DM_ERR_INTERNAL

#define ANJ_DM_ERR_INTERNAL   (-(int) ANJ_COAP_CODE_INTERNAL_SERVER_ERROR)

Unspecified error, no other error code was suitable.

◆ ANJ_DM_ERR_METHOD_NOT_ALLOWED

#define ANJ_DM_ERR_METHOD_NOT_ALLOWED    (-(int) ANJ_COAP_CODE_METHOD_NOT_ALLOWED)

Operation is not allowed in current device state or the attempted operation is invalid for this target (Object/Instance/Resource)

◆ ANJ_DM_ERR_NOT_FOUND

#define ANJ_DM_ERR_NOT_FOUND   (-(int) ANJ_COAP_CODE_NOT_FOUND)

Target of the operation (Object/Instance/Resource) does not exist.

◆ ANJ_DM_ERR_NOT_IMPLEMENTED

#define ANJ_DM_ERR_NOT_IMPLEMENTED   (-(int) ANJ_COAP_CODE_NOT_IMPLEMENTED)

Operation is not implemented by the LwM2M Client.

◆ ANJ_DM_ERR_SERVICE_UNAVAILABLE

#define ANJ_DM_ERR_SERVICE_UNAVAILABLE    (-(int) ANJ_COAP_CODE_SERVICE_UNAVAILABLE)

LwM2M Client is busy processing some other request; LwM2M Server may retry sending the same request after some delay.

◆ ANJ_DM_ERR_UNAUTHORIZED

#define ANJ_DM_ERR_UNAUTHORIZED   (-(int) ANJ_COAP_CODE_UNAUTHORIZED)

LwM2M Server is not allowed to perform the operation due to lack of necessary access rights.