|
Previous Page |
Solar_Http_Response |
Next Page |
setStatusCode()
public
Solar_Http_Response
setStatusCode (
int $code
)
Sets the HTTP response status code.
Parameters
- (int)
$code: An HTTP status code, such as 200, 302, 404, etc.
Returns
- (Solar_Http_Response) This response object.
Description
Sets the HTTP response status code.
Automatically resets the status text to the default for this code.
Local
- Overview
- Constants
- Properties
- Methods
- __construct()
- __destruct()
- __toString()
- _exception()
- _sendHeaders()
- apiVersion()
- display()
- dump()
- getContent()
- getCookie()
- getCookies()
- getHeader()
- getHeaders()
- getStatusCode()
- getStatusText()
- getVersion()
- locale()
- setContent()
- setCookie()
- setCookiesHttponly()
- setHeader()
- setStatusCode()
- setStatusText()
- setVersion()