Response
setStatusCode(int $code, mixed $text = null)
Sets the response status code.
Parameters int $code HTTP status code mixed $text HTTP status text If the status text is null it will be automatically populated for the known status codes and left empty otherwise.
Return Value Response Exceptions InvalidArgumentException When the HTTP status code is not valid