Sends error number and error message back to the caller.
Syntax
API_sendError(message, errno)
Arguments
message
Error message.
errno
Optional. Error number 500 will be sent if value is omitted.
Return value
No return value.
Sample code
API_sendError("Too many requests", 429)