REST API: sendError
12.11.2022
249

Sends error number and error message back to the caller

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

 

Was this article helpful?Yes (0)No (0)Thank you for your feedback!