Lines Matching full:status
15 * This is the list of currently registered HTTP status codes.
30 207 => 'Multi-Status', // RFC 4918
68 451 => 'Unavailable For Legal Reasons', // draft-tbray-http-legally-restricted-status
84 * HTTP status code
88 protected $status; variable in Sabre\\HTTP\\Response
91 * HTTP status text
100 * @param string|int $status
105 function __construct($status = null, array $headers = null, $body = null) { argument
107 if (!is_null($status)) $this->setStatus($status);
115 * Returns the current HTTP status code.
121 return $this->status;
126 * Returns the human-readable status string.
139 * Sets the HTTP status code.
141 * This can be either the full HTTP status code with human readable string,
147 * @param string|int $status
151 function setStatus($status) { argument
153 if (ctype_digit($status) || is_int($status)) {
155 $statusCode = $status;
156 … $statusText = isset(self::$statusCodes[$status]) ? self::$statusCodes[$status] : 'Unknown';
162 ) = explode(' ', $status, 2);
165 throw new \InvalidArgumentException('The HTTP status code must be exactly 3 digits');
168 $this->status = $statusCode;