<?php
/**
* Exception for unknown status responses
*
* @package Requests\Exceptions
*/
namespace WpOrg\Requests\Exception\Http;
use WpOrg\Requests\Exception\Http;
use WpOrg\Requests\Response;
/**
* Exception for unknown status responses
*
* @package Requests\Exceptions
*/
final class StatusUnknown extends Http {
/**
* HTTP status code
*
* @var integer|bool Code if available, false if an error occurred
*/
protected $code = 0;
/**
* Reason phrase
*
* @var string
*/
protected $reason = 'Unknown';
/**
* Create a new exception
*
* If `$data` is an instance of {@see \WpOrg\Requests\Response}, uses the status
* code from it. Otherwise, sets as 0
*
* @param string|null $reason Reason phrase
* @param mixed $data Associated data
*/
public function __construct($reason = null, $data = null) {
if ($data instanceof Response) {
$this->code = (int) $data->status_code;
}
parent::__construct($reason, $data);
}
}
| nama | waktu | ukuran | owner | perm | aksi |
|---|---|---|---|---|---|
| .. | |||||
| Status304.php | 2026-02-23 19:41 | 460 B | 76129f60960:kunden | -xw-x----- | |
| Status305.php | 2026-02-23 19:41 | 451 B | 76129f60960:kunden | -xw-x----- | |
| Status306.php | 2026-02-23 19:41 | 460 B | 76129f60960:kunden | -xw-x----- | |
| Status400.php | 2026-02-23 19:41 | 457 B | 76129f60960:kunden | -xw-x----- | |
| Status401.php | 2026-02-23 19:41 | 460 B | 76129f60960:kunden | -xw-x----- | |
| Status402.php | 2026-02-23 19:41 | 472 B | 76129f60960:kunden | -xw-x----- | |
| Status403.php | 2026-02-23 19:41 | 451 B | 76129f60960:kunden | -xw-x----- | |
| Status404.php | 2026-02-23 19:41 | 451 B | 76129f60960:kunden | -xw-x----- | |
| Status405.php | 2026-02-23 19:41 | 478 B | 76129f60960:kunden | -xw-x----- | |
| Status406.php | 2026-02-23 19:41 | 466 B | 76129f60960:kunden | -xw-x----- | |
| Status407.php | 2026-02-23 19:41 | 511 B | 76129f60960:kunden | -xw-x----- | |
| Status408.php | 2026-02-23 19:41 | 469 B | 76129f60960:kunden | -xw-x----- | |
| Status409.php | 2026-02-23 19:41 | 448 B | 76129f60960:kunden | -xw-x----- | |
| Status410.php | 2026-02-23 19:41 | 436 B | 76129f60960:kunden | -xw-x----- | |
| Status411.php | 2026-02-23 19:41 | 469 B | 76129f60960:kunden | -xw-x----- | |
| Status412.php | 2026-02-23 19:41 | 481 B | 76129f60960:kunden | -xw-x----- | |
| Status413.php | 2026-02-23 19:41 | 496 B | 76129f60960:kunden | -xw-x----- | |
| Status414.php | 2026-02-23 19:41 | 487 B | 76129f60960:kunden | -xw-x----- | |
| Status415.php | 2026-02-23 19:41 | 490 B | 76129f60960:kunden | -xw-x----- | |
| Status416.php | 2026-02-23 19:41 | 517 B | 76129f60960:kunden | -xw-x----- | |
| Status417.php | 2026-02-23 19:41 | 478 B | 76129f60960:kunden | -xw-x----- | |
| Status418.php | 2026-02-23 19:41 | 556 B | 76129f60960:kunden | -xw-x----- | |
| Status428.php | 2026-02-23 19:41 | 583 B | 76129f60960:kunden | -xw-x----- | |
| Status429.php | 2026-02-23 19:41 | 627 B | 76129f60960:kunden | -xw-x----- | |
| Status431.php | 2026-02-23 19:41 | 613 B | 76129f60960:kunden | -xw-x----- | |
| Status500.php | 2026-02-23 19:41 | 487 B | 76129f60960:kunden | -xw-x----- | |
| Status501.php | 2026-02-23 19:41 | 469 B | 76129f60960:kunden | -xw-x----- | |
| Status502.php | 2026-02-23 19:41 | 457 B | 76129f60960:kunden | -xw-x----- | |
| Status503.php | 2026-02-23 19:41 | 481 B | 76129f60960:kunden | -xw-x----- | |
| Status504.php | 2026-02-23 19:41 | 469 B | 76129f60960:kunden | -xw-x----- | |
| Status505.php | 2026-02-23 19:41 | 502 B | 76129f60960:kunden | -xw-x----- | |
| Status511.php | 2026-02-23 19:41 | 613 B | 76129f60960:kunden | -xw-x----- | |
| StatusUnknown.php | 2026-02-23 19:41 | 970 B | 76129f60960:kunden | -xw-x----- | |