Please enable JavaScript to view this site.

Navigation: Advanced topics > Programming topics > PHPRunner's REST API

REST API: sendError

Scroll Prev Next More


Sends error number and error message back to the caller.


API::sendError($message, $errno);



Error message.


Optional. Error number 500 will be sent if value is omitted.

Return value

No return value.

Sample code


API::sendError( "Too many requests", 429 );



Created with Help+Manual 7 and styled with Premium Pack Version 3 © by EC Software