RESTAPIResponse - setStatus(Number status)

Set the status code number for the web service response.

Table 1. Parameters
Name Type Description
status Number The status code to send in the response, such as 200 to indicate success. Passing a non-numerical value, such as a string, causes the status code to default to 0.
Table 2. Returns
Type Description