Please enable JavaScript to view this site.

Navigation: Advanced topics > Programming topics > ASPRunner.NET'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);