setStatus()
Overview
public any function setStatus(
numeric code
, string text
)
Sets the status of the response and returns reference to self so that methods can be chained allows setting of both code and text for the response.
Arguments
Name | Type | Required | Description |
---|---|---|---|
code | numeric | No | Numeric status code to set on the response |
text | string | No | Free text status message to return with the response |