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 );