Please enable JavaScript to view this site.

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

REST API: sendError

Scroll Prev Next More

 

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)