Set the response status code and text for your response. The default value after each request is $API_STATUS_OK
_API_RES_SET_STATUS($statusCodeText)
The most common statuses are defined as constants, see more at #Region Respons statuses
_API_RES_SET_CONTENT_TYPE