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
104 function __construct($status = null, array $headers = null, $body = null) { argument
106 if (!is_null($status)) $this->setStatus($status);
114 * Returns the current HTTP status code.
120 return $this->status;
125 * Returns the human-readable status string.
138 * Sets the HTTP status code.
140 * This can be either the full HTTP status code with human readable string,
146 * @param string|int $status
150 function setStatus($status) { argument
152 if (ctype_digit($status) || is_int($status)) {
154 $statusCode = $status;
155 … $statusText = isset(self::$statusCodes[$status]) ? self::$statusCodes[$status] : 'Unknown';
161 ) = explode(' ', $status, 2);
164 throw new \InvalidArgumentException('The HTTP status code must be exactly 3 digits');
167 $this->status = $statusCode;