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

NameTypeRequiredDescription
codenumericNoNumeric status code to set on the response
textstringNoFree text status message to return with the response