respAddError()

This procedure adds error message to response.

ParameterTypeDescription
code9B 0MandatoryError code
message1024A VARSIZEOptionalAdditional message text

Following codes are supported:

codeDescription
API_PARSE_ERRParse error
API_INVREQ_ERRInvalid request
API_METHOD_ERRMethod not found
API_PARAMS_ERRInvalid params
API_INTERNAL_ERRInternal error
API_SECURITY_ERRSecurity error
API_SERVER_ERRServer error
API_APPLICATION_ERRApplication error
API_INDEX_ERRIndex out of bounds
API_NO_RECORDS_ERRNo records found

Examples:

respAddError(API_PARAMS_ERR);

respAddError(API_PARAMS_ERR: 'Additional message');