This procedure adds error message to response.
Parameter | Type | Description | |
---|---|---|---|
code | 9B 0 | Mandatory | Error code |
message | 1024A VARSIZE | Optional | Additional message text |
Following codes are supported:
code | Description |
---|---|
API_PARSE_ERR | Parse error |
API_INVREQ_ERR | Invalid request |
API_METHOD_ERR | Method not found |
API_PARAMS_ERR | Invalid params |
API_INTERNAL_ERR | Internal error |
API_SECURITY_ERR | Security error |
API_SERVER_ERR | Server error |
API_APPLICATION_ERR | Application error |
API_INDEX_ERR | Index out of bounds |
API_NO_RECORDS_ERR | No records found |
Examples:
respAddError(API_PARAMS_ERR);
respAddError(API_PARAMS_ERR: 'Additional message');