aboutsummaryrefslogtreecommitdiff
path: root/srcs/wordpress/wp-includes/Requests/Exception
diff options
context:
space:
mode:
Diffstat (limited to 'srcs/wordpress/wp-includes/Requests/Exception')
-rw-r--r--srcs/wordpress/wp-includes/Requests/Exception/HTTP.php71
-rw-r--r--srcs/wordpress/wp-includes/Requests/Exception/HTTP/304.php27
-rw-r--r--srcs/wordpress/wp-includes/Requests/Exception/HTTP/305.php27
-rw-r--r--srcs/wordpress/wp-includes/Requests/Exception/HTTP/306.php27
-rw-r--r--srcs/wordpress/wp-includes/Requests/Exception/HTTP/400.php27
-rw-r--r--srcs/wordpress/wp-includes/Requests/Exception/HTTP/401.php27
-rw-r--r--srcs/wordpress/wp-includes/Requests/Exception/HTTP/402.php27
-rw-r--r--srcs/wordpress/wp-includes/Requests/Exception/HTTP/403.php27
-rw-r--r--srcs/wordpress/wp-includes/Requests/Exception/HTTP/404.php27
-rw-r--r--srcs/wordpress/wp-includes/Requests/Exception/HTTP/405.php27
-rw-r--r--srcs/wordpress/wp-includes/Requests/Exception/HTTP/406.php27
-rw-r--r--srcs/wordpress/wp-includes/Requests/Exception/HTTP/407.php27
-rw-r--r--srcs/wordpress/wp-includes/Requests/Exception/HTTP/408.php27
-rw-r--r--srcs/wordpress/wp-includes/Requests/Exception/HTTP/409.php27
-rw-r--r--srcs/wordpress/wp-includes/Requests/Exception/HTTP/410.php27
-rw-r--r--srcs/wordpress/wp-includes/Requests/Exception/HTTP/411.php27
-rw-r--r--srcs/wordpress/wp-includes/Requests/Exception/HTTP/412.php27
-rw-r--r--srcs/wordpress/wp-includes/Requests/Exception/HTTP/413.php27
-rw-r--r--srcs/wordpress/wp-includes/Requests/Exception/HTTP/414.php27
-rw-r--r--srcs/wordpress/wp-includes/Requests/Exception/HTTP/415.php27
-rw-r--r--srcs/wordpress/wp-includes/Requests/Exception/HTTP/416.php27
-rw-r--r--srcs/wordpress/wp-includes/Requests/Exception/HTTP/417.php27
-rw-r--r--srcs/wordpress/wp-includes/Requests/Exception/HTTP/418.php29
-rw-r--r--srcs/wordpress/wp-includes/Requests/Exception/HTTP/428.php29
-rw-r--r--srcs/wordpress/wp-includes/Requests/Exception/HTTP/429.php29
-rw-r--r--srcs/wordpress/wp-includes/Requests/Exception/HTTP/431.php29
-rw-r--r--srcs/wordpress/wp-includes/Requests/Exception/HTTP/500.php27
-rw-r--r--srcs/wordpress/wp-includes/Requests/Exception/HTTP/501.php27
-rw-r--r--srcs/wordpress/wp-includes/Requests/Exception/HTTP/502.php27
-rw-r--r--srcs/wordpress/wp-includes/Requests/Exception/HTTP/503.php27
-rw-r--r--srcs/wordpress/wp-includes/Requests/Exception/HTTP/504.php27
-rw-r--r--srcs/wordpress/wp-includes/Requests/Exception/HTTP/505.php27
-rw-r--r--srcs/wordpress/wp-includes/Requests/Exception/HTTP/511.php29
-rw-r--r--srcs/wordpress/wp-includes/Requests/Exception/HTTP/Unknown.php44
-rw-r--r--srcs/wordpress/wp-includes/Requests/Exception/Transport.php5
-rw-r--r--srcs/wordpress/wp-includes/Requests/Exception/Transport/cURL.php56
36 files changed, 0 insertions, 1050 deletions
diff --git a/srcs/wordpress/wp-includes/Requests/Exception/HTTP.php b/srcs/wordpress/wp-includes/Requests/Exception/HTTP.php
deleted file mode 100644
index 9ac6a87..0000000
--- a/srcs/wordpress/wp-includes/Requests/Exception/HTTP.php
+++ /dev/null
@@ -1,71 +0,0 @@
-<?php
-/**
- * Exception based on HTTP response
- *
- * @package Requests
- */
-
-/**
- * Exception based on HTTP response
- *
- * @package Requests
- */
-class Requests_Exception_HTTP extends Requests_Exception {
- /**
- * HTTP status code
- *
- * @var integer
- */
- protected $code = 0;
-
- /**
- * Reason phrase
- *
- * @var string
- */
- protected $reason = 'Unknown';
-
- /**
- * Create a new exception
- *
- * There is no mechanism to pass in the status code, as this is set by the
- * subclass used. Reason phrases can vary, however.
- *
- * @param string|null $reason Reason phrase
- * @param mixed $data Associated data
- */
- public function __construct($reason = null, $data = null) {
- if ($reason !== null) {
- $this->reason = $reason;
- }
-
- $message = sprintf('%d %s', $this->code, $this->reason);
- parent::__construct($message, 'httpresponse', $data, $this->code);
- }
-
- /**
- * Get the status message
- */
- public function getReason() {
- return $this->reason;
- }
-
- /**
- * Get the correct exception class for a given error code
- *
- * @param int|bool $code HTTP status code, or false if unavailable
- * @return string Exception class name to use
- */
- public static function get_class($code) {
- if (!$code) {
- return 'Requests_Exception_HTTP_Unknown';
- }
-
- $class = sprintf('Requests_Exception_HTTP_%d', $code);
- if (class_exists($class)) {
- return $class;
- }
-
- return 'Requests_Exception_HTTP_Unknown';
- }
-} \ No newline at end of file
diff --git a/srcs/wordpress/wp-includes/Requests/Exception/HTTP/304.php b/srcs/wordpress/wp-includes/Requests/Exception/HTTP/304.php
deleted file mode 100644
index 6799033..0000000
--- a/srcs/wordpress/wp-includes/Requests/Exception/HTTP/304.php
+++ /dev/null
@@ -1,27 +0,0 @@
-<?php
-/**
- * Exception for 304 Not Modified responses
- *
- * @package Requests
- */
-
-/**
- * Exception for 304 Not Modified responses
- *
- * @package Requests
- */
-class Requests_Exception_HTTP_304 extends Requests_Exception_HTTP {
- /**
- * HTTP status code
- *
- * @var integer
- */
- protected $code = 304;
-
- /**
- * Reason phrase
- *
- * @var string
- */
- protected $reason = 'Not Modified';
-} \ No newline at end of file
diff --git a/srcs/wordpress/wp-includes/Requests/Exception/HTTP/305.php b/srcs/wordpress/wp-includes/Requests/Exception/HTTP/305.php
deleted file mode 100644
index 37d115a..0000000
--- a/srcs/wordpress/wp-includes/Requests/Exception/HTTP/305.php
+++ /dev/null
@@ -1,27 +0,0 @@
-<?php
-/**
- * Exception for 305 Use Proxy responses
- *
- * @package Requests
- */
-
-/**
- * Exception for 305 Use Proxy responses
- *
- * @package Requests
- */
-class Requests_Exception_HTTP_305 extends Requests_Exception_HTTP {
- /**
- * HTTP status code
- *
- * @var integer
- */
- protected $code = 305;
-
- /**
- * Reason phrase
- *
- * @var string
- */
- protected $reason = 'Use Proxy';
-}
diff --git a/srcs/wordpress/wp-includes/Requests/Exception/HTTP/306.php b/srcs/wordpress/wp-includes/Requests/Exception/HTTP/306.php
deleted file mode 100644
index 743a4ed..0000000
--- a/srcs/wordpress/wp-includes/Requests/Exception/HTTP/306.php
+++ /dev/null
@@ -1,27 +0,0 @@
-<?php
-/**
- * Exception for 306 Switch Proxy responses
- *
- * @package Requests
- */
-
-/**
- * Exception for 306 Switch Proxy responses
- *
- * @package Requests
- */
-class Requests_Exception_HTTP_306 extends Requests_Exception_HTTP {
- /**
- * HTTP status code
- *
- * @var integer
- */
- protected $code = 306;
-
- /**
- * Reason phrase
- *
- * @var string
- */
- protected $reason = 'Switch Proxy';
-}
diff --git a/srcs/wordpress/wp-includes/Requests/Exception/HTTP/400.php b/srcs/wordpress/wp-includes/Requests/Exception/HTTP/400.php
deleted file mode 100644
index b3ad774..0000000
--- a/srcs/wordpress/wp-includes/Requests/Exception/HTTP/400.php
+++ /dev/null
@@ -1,27 +0,0 @@
-<?php
-/**
- * Exception for 400 Bad Request responses
- *
- * @package Requests
- */
-
-/**
- * Exception for 400 Bad Request responses
- *
- * @package Requests
- */
-class Requests_Exception_HTTP_400 extends Requests_Exception_HTTP {
- /**
- * HTTP status code
- *
- * @var integer
- */
- protected $code = 400;
-
- /**
- * Reason phrase
- *
- * @var string
- */
- protected $reason = 'Bad Request';
-} \ No newline at end of file
diff --git a/srcs/wordpress/wp-includes/Requests/Exception/HTTP/401.php b/srcs/wordpress/wp-includes/Requests/Exception/HTTP/401.php
deleted file mode 100644
index 2e1e3d0..0000000
--- a/srcs/wordpress/wp-includes/Requests/Exception/HTTP/401.php
+++ /dev/null
@@ -1,27 +0,0 @@
-<?php
-/**
- * Exception for 401 Unauthorized responses
- *
- * @package Requests
- */
-
-/**
- * Exception for 401 Unauthorized responses
- *
- * @package Requests
- */
-class Requests_Exception_HTTP_401 extends Requests_Exception_HTTP {
- /**
- * HTTP status code
- *
- * @var integer
- */
- protected $code = 401;
-
- /**
- * Reason phrase
- *
- * @var string
- */
- protected $reason = 'Unauthorized';
-} \ No newline at end of file
diff --git a/srcs/wordpress/wp-includes/Requests/Exception/HTTP/402.php b/srcs/wordpress/wp-includes/Requests/Exception/HTTP/402.php
deleted file mode 100644
index 1d965d2..0000000
--- a/srcs/wordpress/wp-includes/Requests/Exception/HTTP/402.php
+++ /dev/null
@@ -1,27 +0,0 @@
-<?php
-/**
- * Exception for 402 Payment Required responses
- *
- * @package Requests
- */
-
-/**
- * Exception for 402 Payment Required responses
- *
- * @package Requests
- */
-class Requests_Exception_HTTP_402 extends Requests_Exception_HTTP {
- /**
- * HTTP status code
- *
- * @var integer
- */
- protected $code = 402;
-
- /**
- * Reason phrase
- *
- * @var string
- */
- protected $reason = 'Payment Required';
-} \ No newline at end of file
diff --git a/srcs/wordpress/wp-includes/Requests/Exception/HTTP/403.php b/srcs/wordpress/wp-includes/Requests/Exception/HTTP/403.php
deleted file mode 100644
index 5ca3caf..0000000
--- a/srcs/wordpress/wp-includes/Requests/Exception/HTTP/403.php
+++ /dev/null
@@ -1,27 +0,0 @@
-<?php
-/**
- * Exception for 403 Forbidden responses
- *
- * @package Requests
- */
-
-/**
- * Exception for 403 Forbidden responses
- *
- * @package Requests
- */
-class Requests_Exception_HTTP_403 extends Requests_Exception_HTTP {
- /**
- * HTTP status code
- *
- * @var integer
- */
- protected $code = 403;
-
- /**
- * Reason phrase
- *
- * @var string
- */
- protected $reason = 'Forbidden';
-} \ No newline at end of file
diff --git a/srcs/wordpress/wp-includes/Requests/Exception/HTTP/404.php b/srcs/wordpress/wp-includes/Requests/Exception/HTTP/404.php
deleted file mode 100644
index f08be2d..0000000
--- a/srcs/wordpress/wp-includes/Requests/Exception/HTTP/404.php
+++ /dev/null
@@ -1,27 +0,0 @@
-<?php
-/**
- * Exception for 404 Not Found responses
- *
- * @package Requests
- */
-
-/**
- * Exception for 404 Not Found responses
- *
- * @package Requests
- */
-class Requests_Exception_HTTP_404 extends Requests_Exception_HTTP {
- /**
- * HTTP status code
- *
- * @var integer
- */
- protected $code = 404;
-
- /**
- * Reason phrase
- *
- * @var string
- */
- protected $reason = 'Not Found';
-} \ No newline at end of file
diff --git a/srcs/wordpress/wp-includes/Requests/Exception/HTTP/405.php b/srcs/wordpress/wp-includes/Requests/Exception/HTTP/405.php
deleted file mode 100644
index b8419e1..0000000
--- a/srcs/wordpress/wp-includes/Requests/Exception/HTTP/405.php
+++ /dev/null
@@ -1,27 +0,0 @@
-<?php
-/**
- * Exception for 405 Method Not Allowed responses
- *
- * @package Requests
- */
-
-/**
- * Exception for 405 Method Not Allowed responses
- *
- * @package Requests
- */
-class Requests_Exception_HTTP_405 extends Requests_Exception_HTTP {
- /**
- * HTTP status code
- *
- * @var integer
- */
- protected $code = 405;
-
- /**
- * Reason phrase
- *
- * @var string
- */
- protected $reason = 'Method Not Allowed';
-} \ No newline at end of file
diff --git a/srcs/wordpress/wp-includes/Requests/Exception/HTTP/406.php b/srcs/wordpress/wp-includes/Requests/Exception/HTTP/406.php
deleted file mode 100644
index 09d0622..0000000
--- a/srcs/wordpress/wp-includes/Requests/Exception/HTTP/406.php
+++ /dev/null
@@ -1,27 +0,0 @@
-<?php
-/**
- * Exception for 406 Not Acceptable responses
- *
- * @package Requests
- */
-
-/**
- * Exception for 406 Not Acceptable responses
- *
- * @package Requests
- */
-class Requests_Exception_HTTP_406 extends Requests_Exception_HTTP {
- /**
- * HTTP status code
- *
- * @var integer
- */
- protected $code = 406;
-
- /**
- * Reason phrase
- *
- * @var string
- */
- protected $reason = 'Not Acceptable';
-} \ No newline at end of file
diff --git a/srcs/wordpress/wp-includes/Requests/Exception/HTTP/407.php b/srcs/wordpress/wp-includes/Requests/Exception/HTTP/407.php
deleted file mode 100644
index c21d1ec..0000000
--- a/srcs/wordpress/wp-includes/Requests/Exception/HTTP/407.php
+++ /dev/null
@@ -1,27 +0,0 @@
-<?php
-/**
- * Exception for 407 Proxy Authentication Required responses
- *
- * @package Requests
- */
-
-/**
- * Exception for 407 Proxy Authentication Required responses
- *
- * @package Requests
- */
-class Requests_Exception_HTTP_407 extends Requests_Exception_HTTP {
- /**
- * HTTP status code
- *
- * @var integer
- */
- protected $code = 407;
-
- /**
- * Reason phrase
- *
- * @var string
- */
- protected $reason = 'Proxy Authentication Required';
-} \ No newline at end of file
diff --git a/srcs/wordpress/wp-includes/Requests/Exception/HTTP/408.php b/srcs/wordpress/wp-includes/Requests/Exception/HTTP/408.php
deleted file mode 100644
index 0691863..0000000
--- a/srcs/wordpress/wp-includes/Requests/Exception/HTTP/408.php
+++ /dev/null
@@ -1,27 +0,0 @@
-<?php
-/**
- * Exception for 408 Request Timeout responses
- *
- * @package Requests
- */
-
-/**
- * Exception for 408 Request Timeout responses
- *
- * @package Requests
- */
-class Requests_Exception_HTTP_408 extends Requests_Exception_HTTP {
- /**
- * HTTP status code
- *
- * @var integer
- */
- protected $code = 408;
-
- /**
- * Reason phrase
- *
- * @var string
- */
- protected $reason = 'Request Timeout';
-} \ No newline at end of file
diff --git a/srcs/wordpress/wp-includes/Requests/Exception/HTTP/409.php b/srcs/wordpress/wp-includes/Requests/Exception/HTTP/409.php
deleted file mode 100644
index 5a3e0d1..0000000
--- a/srcs/wordpress/wp-includes/Requests/Exception/HTTP/409.php
+++ /dev/null
@@ -1,27 +0,0 @@
-<?php
-/**
- * Exception for 409 Conflict responses
- *
- * @package Requests
- */
-
-/**
- * Exception for 409 Conflict responses
- *
- * @package Requests
- */
-class Requests_Exception_HTTP_409 extends Requests_Exception_HTTP {
- /**
- * HTTP status code
- *
- * @var integer
- */
- protected $code = 409;
-
- /**
- * Reason phrase
- *
- * @var string
- */
- protected $reason = 'Conflict';
-} \ No newline at end of file
diff --git a/srcs/wordpress/wp-includes/Requests/Exception/HTTP/410.php b/srcs/wordpress/wp-includes/Requests/Exception/HTTP/410.php
deleted file mode 100644
index 8eb3daf..0000000
--- a/srcs/wordpress/wp-includes/Requests/Exception/HTTP/410.php
+++ /dev/null
@@ -1,27 +0,0 @@
-<?php
-/**
- * Exception for 410 Gone responses
- *
- * @package Requests
- */
-
-/**
- * Exception for 410 Gone responses
- *
- * @package Requests
- */
-class Requests_Exception_HTTP_410 extends Requests_Exception_HTTP {
- /**
- * HTTP status code
- *
- * @var integer
- */
- protected $code = 410;
-
- /**
- * Reason phrase
- *
- * @var string
- */
- protected $reason = 'Gone';
-} \ No newline at end of file
diff --git a/srcs/wordpress/wp-includes/Requests/Exception/HTTP/411.php b/srcs/wordpress/wp-includes/Requests/Exception/HTTP/411.php
deleted file mode 100644
index cee6496..0000000
--- a/srcs/wordpress/wp-includes/Requests/Exception/HTTP/411.php
+++ /dev/null
@@ -1,27 +0,0 @@
-<?php
-/**
- * Exception for 411 Length Required responses
- *
- * @package Requests
- */
-
-/**
- * Exception for 411 Length Required responses
- *
- * @package Requests
- */
-class Requests_Exception_HTTP_411 extends Requests_Exception_HTTP {
- /**
- * HTTP status code
- *
- * @var integer
- */
- protected $code = 411;
-
- /**
- * Reason phrase
- *
- * @var string
- */
- protected $reason = 'Length Required';
-} \ No newline at end of file
diff --git a/srcs/wordpress/wp-includes/Requests/Exception/HTTP/412.php b/srcs/wordpress/wp-includes/Requests/Exception/HTTP/412.php
deleted file mode 100644
index e377d79..0000000
--- a/srcs/wordpress/wp-includes/Requests/Exception/HTTP/412.php
+++ /dev/null
@@ -1,27 +0,0 @@
-<?php
-/**
- * Exception for 412 Precondition Failed responses
- *
- * @package Requests
- */
-
-/**
- * Exception for 412 Precondition Failed responses
- *
- * @package Requests
- */
-class Requests_Exception_HTTP_412 extends Requests_Exception_HTTP {
- /**
- * HTTP status code
- *
- * @var integer
- */
- protected $code = 412;
-
- /**
- * Reason phrase
- *
- * @var string
- */
- protected $reason = 'Precondition Failed';
-} \ No newline at end of file
diff --git a/srcs/wordpress/wp-includes/Requests/Exception/HTTP/413.php b/srcs/wordpress/wp-includes/Requests/Exception/HTTP/413.php
deleted file mode 100644
index 3b5fe27..0000000
--- a/srcs/wordpress/wp-includes/Requests/Exception/HTTP/413.php
+++ /dev/null
@@ -1,27 +0,0 @@
-<?php
-/**
- * Exception for 413 Request Entity Too Large responses
- *
- * @package Requests
- */
-
-/**
- * Exception for 413 Request Entity Too Large responses
- *
- * @package Requests
- */
-class Requests_Exception_HTTP_413 extends Requests_Exception_HTTP {
- /**
- * HTTP status code
- *
- * @var integer
- */
- protected $code = 413;
-
- /**
- * Reason phrase
- *
- * @var string
- */
- protected $reason = 'Request Entity Too Large';
-} \ No newline at end of file
diff --git a/srcs/wordpress/wp-includes/Requests/Exception/HTTP/414.php b/srcs/wordpress/wp-includes/Requests/Exception/HTTP/414.php
deleted file mode 100644
index 14d5a59..0000000
--- a/srcs/wordpress/wp-includes/Requests/Exception/HTTP/414.php
+++ /dev/null
@@ -1,27 +0,0 @@
-<?php
-/**
- * Exception for 414 Request-URI Too Large responses
- *
- * @package Requests
- */
-
-/**
- * Exception for 414 Request-URI Too Large responses
- *
- * @package Requests
- */
-class Requests_Exception_HTTP_414 extends Requests_Exception_HTTP {
- /**
- * HTTP status code
- *
- * @var integer
- */
- protected $code = 414;
-
- /**
- * Reason phrase
- *
- * @var string
- */
- protected $reason = 'Request-URI Too Large';
-} \ No newline at end of file
diff --git a/srcs/wordpress/wp-includes/Requests/Exception/HTTP/415.php b/srcs/wordpress/wp-includes/Requests/Exception/HTTP/415.php
deleted file mode 100644
index 32446c8..0000000
--- a/srcs/wordpress/wp-includes/Requests/Exception/HTTP/415.php
+++ /dev/null
@@ -1,27 +0,0 @@
-<?php
-/**
- * Exception for 415 Unsupported Media Type responses
- *
- * @package Requests
- */
-
-/**
- * Exception for 415 Unsupported Media Type responses
- *
- * @package Requests
- */
-class Requests_Exception_HTTP_415 extends Requests_Exception_HTTP {
- /**
- * HTTP status code
- *
- * @var integer
- */
- protected $code = 415;
-
- /**
- * Reason phrase
- *
- * @var string
- */
- protected $reason = 'Unsupported Media Type';
-} \ No newline at end of file
diff --git a/srcs/wordpress/wp-includes/Requests/Exception/HTTP/416.php b/srcs/wordpress/wp-includes/Requests/Exception/HTTP/416.php
deleted file mode 100644
index 8c5f833..0000000
--- a/srcs/wordpress/wp-includes/Requests/Exception/HTTP/416.php
+++ /dev/null
@@ -1,27 +0,0 @@
-<?php
-/**
- * Exception for 416 Requested Range Not Satisfiable responses
- *
- * @package Requests
- */
-
-/**
- * Exception for 416 Requested Range Not Satisfiable responses
- *
- * @package Requests
- */
-class Requests_Exception_HTTP_416 extends Requests_Exception_HTTP {
- /**
- * HTTP status code
- *
- * @var integer
- */
- protected $code = 416;
-
- /**
- * Reason phrase
- *
- * @var string
- */
- protected $reason = 'Requested Range Not Satisfiable';
-} \ No newline at end of file
diff --git a/srcs/wordpress/wp-includes/Requests/Exception/HTTP/417.php b/srcs/wordpress/wp-includes/Requests/Exception/HTTP/417.php
deleted file mode 100644
index 8807c71..0000000
--- a/srcs/wordpress/wp-includes/Requests/Exception/HTTP/417.php
+++ /dev/null
@@ -1,27 +0,0 @@
-<?php
-/**
- * Exception for 417 Expectation Failed responses
- *
- * @package Requests
- */
-
-/**
- * Exception for 417 Expectation Failed responses
- *
- * @package Requests
- */
-class Requests_Exception_HTTP_417 extends Requests_Exception_HTTP {
- /**
- * HTTP status code
- *
- * @var integer
- */
- protected $code = 417;
-
- /**
- * Reason phrase
- *
- * @var string
- */
- protected $reason = 'Expectation Failed';
-} \ No newline at end of file
diff --git a/srcs/wordpress/wp-includes/Requests/Exception/HTTP/418.php b/srcs/wordpress/wp-includes/Requests/Exception/HTTP/418.php
deleted file mode 100644
index d6af806..0000000
--- a/srcs/wordpress/wp-includes/Requests/Exception/HTTP/418.php
+++ /dev/null
@@ -1,29 +0,0 @@
-<?php
-/**
- * Exception for 418 I'm A Teapot responses
- *
- * @see https://tools.ietf.org/html/rfc2324
- * @package Requests
- */
-
-/**
- * Exception for 418 I'm A Teapot responses
- *
- * @see https://tools.ietf.org/html/rfc2324
- * @package Requests
- */
-class Requests_Exception_HTTP_418 extends Requests_Exception_HTTP {
- /**
- * HTTP status code
- *
- * @var integer
- */
- protected $code = 418;
-
- /**
- * Reason phrase
- *
- * @var string
- */
- protected $reason = "I'm A Teapot";
-} \ No newline at end of file
diff --git a/srcs/wordpress/wp-includes/Requests/Exception/HTTP/428.php b/srcs/wordpress/wp-includes/Requests/Exception/HTTP/428.php
deleted file mode 100644
index 469e954..0000000
--- a/srcs/wordpress/wp-includes/Requests/Exception/HTTP/428.php
+++ /dev/null
@@ -1,29 +0,0 @@
-<?php
-/**
- * Exception for 428 Precondition Required responses
- *
- * @see https://tools.ietf.org/html/rfc6585
- * @package Requests
- */
-
-/**
- * Exception for 428 Precondition Required responses
- *
- * @see https://tools.ietf.org/html/rfc6585
- * @package Requests
- */
-class Requests_Exception_HTTP_428 extends Requests_Exception_HTTP {
- /**
- * HTTP status code
- *
- * @var integer
- */
- protected $code = 428;
-
- /**
- * Reason phrase
- *
- * @var string
- */
- protected $reason = 'Precondition Required';
-} \ No newline at end of file
diff --git a/srcs/wordpress/wp-includes/Requests/Exception/HTTP/429.php b/srcs/wordpress/wp-includes/Requests/Exception/HTTP/429.php
deleted file mode 100644
index 2a21fb3..0000000
--- a/srcs/wordpress/wp-includes/Requests/Exception/HTTP/429.php
+++ /dev/null
@@ -1,29 +0,0 @@
-<?php
-/**
- * Exception for 429 Too Many Requests responses
- *
- * @see https://tools.ietf.org/html/draft-nottingham-http-new-status-04
- * @package Requests
- */
-
-/**
- * Exception for 429 Too Many Requests responses
- *
- * @see https://tools.ietf.org/html/draft-nottingham-http-new-status-04
- * @package Requests
- */
-class Requests_Exception_HTTP_429 extends Requests_Exception_HTTP {
- /**
- * HTTP status code
- *
- * @var integer
- */
- protected $code = 429;
-
- /**
- * Reason phrase
- *
- * @var string
- */
- protected $reason = 'Too Many Requests';
-} \ No newline at end of file
diff --git a/srcs/wordpress/wp-includes/Requests/Exception/HTTP/431.php b/srcs/wordpress/wp-includes/Requests/Exception/HTTP/431.php
deleted file mode 100644
index ba1294e..0000000
--- a/srcs/wordpress/wp-includes/Requests/Exception/HTTP/431.php
+++ /dev/null
@@ -1,29 +0,0 @@
-<?php
-/**
- * Exception for 431 Request Header Fields Too Large responses
- *
- * @see https://tools.ietf.org/html/rfc6585
- * @package Requests
- */
-
-/**
- * Exception for 431 Request Header Fields Too Large responses
- *
- * @see https://tools.ietf.org/html/rfc6585
- * @package Requests
- */
-class Requests_Exception_HTTP_431 extends Requests_Exception_HTTP {
- /**
- * HTTP status code
- *
- * @var integer
- */
- protected $code = 431;
-
- /**
- * Reason phrase
- *
- * @var string
- */
- protected $reason = 'Request Header Fields Too Large';
-} \ No newline at end of file
diff --git a/srcs/wordpress/wp-includes/Requests/Exception/HTTP/500.php b/srcs/wordpress/wp-includes/Requests/Exception/HTTP/500.php
deleted file mode 100644
index 5165e35..0000000
--- a/srcs/wordpress/wp-includes/Requests/Exception/HTTP/500.php
+++ /dev/null
@@ -1,27 +0,0 @@
-<?php
-/**
- * Exception for 500 Internal Server Error responses
- *
- * @package Requests
- */
-
-/**
- * Exception for 500 Internal Server Error responses
- *
- * @package Requests
- */
-class Requests_Exception_HTTP_500 extends Requests_Exception_HTTP {
- /**
- * HTTP status code
- *
- * @var integer
- */
- protected $code = 500;
-
- /**
- * Reason phrase
- *
- * @var string
- */
- protected $reason = 'Internal Server Error';
-} \ No newline at end of file
diff --git a/srcs/wordpress/wp-includes/Requests/Exception/HTTP/501.php b/srcs/wordpress/wp-includes/Requests/Exception/HTTP/501.php
deleted file mode 100644
index 3dd6946..0000000
--- a/srcs/wordpress/wp-includes/Requests/Exception/HTTP/501.php
+++ /dev/null
@@ -1,27 +0,0 @@
-<?php
-/**
- * Exception for 501 Not Implemented responses
- *
- * @package Requests
- */
-
-/**
- * Exception for 501 Not Implemented responses
- *
- * @package Requests
- */
-class Requests_Exception_HTTP_501 extends Requests_Exception_HTTP {
- /**
- * HTTP status code
- *
- * @var integer
- */
- protected $code = 501;
-
- /**
- * Reason phrase
- *
- * @var string
- */
- protected $reason = 'Not Implemented';
-} \ No newline at end of file
diff --git a/srcs/wordpress/wp-includes/Requests/Exception/HTTP/502.php b/srcs/wordpress/wp-includes/Requests/Exception/HTTP/502.php
deleted file mode 100644
index 50c72d4..0000000
--- a/srcs/wordpress/wp-includes/Requests/Exception/HTTP/502.php
+++ /dev/null
@@ -1,27 +0,0 @@
-<?php
-/**
- * Exception for 502 Bad Gateway responses
- *
- * @package Requests
- */
-
-/**
- * Exception for 502 Bad Gateway responses
- *
- * @package Requests
- */
-class Requests_Exception_HTTP_502 extends Requests_Exception_HTTP {
- /**
- * HTTP status code
- *
- * @var integer
- */
- protected $code = 502;
-
- /**
- * Reason phrase
- *
- * @var string
- */
- protected $reason = 'Bad Gateway';
-} \ No newline at end of file
diff --git a/srcs/wordpress/wp-includes/Requests/Exception/HTTP/503.php b/srcs/wordpress/wp-includes/Requests/Exception/HTTP/503.php
deleted file mode 100644
index 9304ecc..0000000
--- a/srcs/wordpress/wp-includes/Requests/Exception/HTTP/503.php
+++ /dev/null
@@ -1,27 +0,0 @@
-<?php
-/**
- * Exception for 503 Service Unavailable responses
- *
- * @package Requests
- */
-
-/**
- * Exception for 503 Service Unavailable responses
- *
- * @package Requests
- */
-class Requests_Exception_HTTP_503 extends Requests_Exception_HTTP {
- /**
- * HTTP status code
- *
- * @var integer
- */
- protected $code = 503;
-
- /**
- * Reason phrase
- *
- * @var string
- */
- protected $reason = 'Service Unavailable';
-} \ No newline at end of file
diff --git a/srcs/wordpress/wp-includes/Requests/Exception/HTTP/504.php b/srcs/wordpress/wp-includes/Requests/Exception/HTTP/504.php
deleted file mode 100644
index f46696b..0000000
--- a/srcs/wordpress/wp-includes/Requests/Exception/HTTP/504.php
+++ /dev/null
@@ -1,27 +0,0 @@
-<?php
-/**
- * Exception for 504 Gateway Timeout responses
- *
- * @package Requests
- */
-
-/**
- * Exception for 504 Gateway Timeout responses
- *
- * @package Requests
- */
-class Requests_Exception_HTTP_504 extends Requests_Exception_HTTP {
- /**
- * HTTP status code
- *
- * @var integer
- */
- protected $code = 504;
-
- /**
- * Reason phrase
- *
- * @var string
- */
- protected $reason = 'Gateway Timeout';
-} \ No newline at end of file
diff --git a/srcs/wordpress/wp-includes/Requests/Exception/HTTP/505.php b/srcs/wordpress/wp-includes/Requests/Exception/HTTP/505.php
deleted file mode 100644
index 1f80294..0000000
--- a/srcs/wordpress/wp-includes/Requests/Exception/HTTP/505.php
+++ /dev/null
@@ -1,27 +0,0 @@
-<?php
-/**
- * Exception for 505 HTTP Version Not Supported responses
- *
- * @package Requests
- */
-
-/**
- * Exception for 505 HTTP Version Not Supported responses
- *
- * @package Requests
- */
-class Requests_Exception_HTTP_505 extends Requests_Exception_HTTP {
- /**
- * HTTP status code
- *
- * @var integer
- */
- protected $code = 505;
-
- /**
- * Reason phrase
- *
- * @var string
- */
- protected $reason = 'HTTP Version Not Supported';
-} \ No newline at end of file
diff --git a/srcs/wordpress/wp-includes/Requests/Exception/HTTP/511.php b/srcs/wordpress/wp-includes/Requests/Exception/HTTP/511.php
deleted file mode 100644
index 920d334..0000000
--- a/srcs/wordpress/wp-includes/Requests/Exception/HTTP/511.php
+++ /dev/null
@@ -1,29 +0,0 @@
-<?php
-/**
- * Exception for 511 Network Authentication Required responses
- *
- * @see https://tools.ietf.org/html/rfc6585
- * @package Requests
- */
-
-/**
- * Exception for 511 Network Authentication Required responses
- *
- * @see https://tools.ietf.org/html/rfc6585
- * @package Requests
- */
-class Requests_Exception_HTTP_511 extends Requests_Exception_HTTP {
- /**
- * HTTP status code
- *
- * @var integer
- */
- protected $code = 511;
-
- /**
- * Reason phrase
- *
- * @var string
- */
- protected $reason = 'Network Authentication Required';
-} \ No newline at end of file
diff --git a/srcs/wordpress/wp-includes/Requests/Exception/HTTP/Unknown.php b/srcs/wordpress/wp-includes/Requests/Exception/HTTP/Unknown.php
deleted file mode 100644
index c70f589..0000000
--- a/srcs/wordpress/wp-includes/Requests/Exception/HTTP/Unknown.php
+++ /dev/null
@@ -1,44 +0,0 @@
-<?php
-/**
- * Exception for unknown status responses
- *
- * @package Requests
- */
-
-/**
- * Exception for unknown status responses
- *
- * @package Requests
- */
-class Requests_Exception_HTTP_Unknown extends Requests_Exception_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 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 Requests_Response) {
- $this->code = $data->status_code;
- }
-
- parent::__construct($reason, $data);
- }
-} \ No newline at end of file
diff --git a/srcs/wordpress/wp-includes/Requests/Exception/Transport.php b/srcs/wordpress/wp-includes/Requests/Exception/Transport.php
deleted file mode 100644
index e60b488..0000000
--- a/srcs/wordpress/wp-includes/Requests/Exception/Transport.php
+++ /dev/null
@@ -1,5 +0,0 @@
-<?php
-
-class Requests_Exception_Transport extends Requests_Exception {
-
-}
diff --git a/srcs/wordpress/wp-includes/Requests/Exception/Transport/cURL.php b/srcs/wordpress/wp-includes/Requests/Exception/Transport/cURL.php
deleted file mode 100644
index 67d157b..0000000
--- a/srcs/wordpress/wp-includes/Requests/Exception/Transport/cURL.php
+++ /dev/null
@@ -1,56 +0,0 @@
-<?php
-
-class Requests_Exception_Transport_cURL extends Requests_Exception_Transport {
-
- const EASY = 'cURLEasy';
- const MULTI = 'cURLMulti';
- const SHARE = 'cURLShare';
-
- /**
- * cURL error code
- *
- * @var integer
- */
- protected $code = -1;
-
- /**
- * Which type of cURL error
- *
- * EASY|MULTI|SHARE
- *
- * @var string
- */
- protected $type = 'Unknown';
-
- /**
- * Clear text error message
- *
- * @var string
- */
- protected $reason = 'Unknown';
-
- public function __construct($message, $type, $data = null, $code = 0) {
- if ($type !== null) {
- $this->type = $type;
- }
-
- if ($code !== null) {
- $this->code = $code;
- }
-
- if ($message !== null) {
- $this->reason = $message;
- }
-
- $message = sprintf('%d %s', $this->code, $this->reason);
- parent::__construct($message, $this->type, $data, $this->code);
- }
-
- /**
- * Get the error message
- */
- public function getReason() {
- return $this->reason;
- }
-
-}