diff options
Diffstat (limited to 'srcs/wordpress/wp-includes/Requests/Exception/HTTP')
33 files changed, 918 insertions, 0 deletions
diff --git a/srcs/wordpress/wp-includes/Requests/Exception/HTTP/304.php b/srcs/wordpress/wp-includes/Requests/Exception/HTTP/304.php new file mode 100644 index 0000000..6799033 --- /dev/null +++ b/srcs/wordpress/wp-includes/Requests/Exception/HTTP/304.php @@ -0,0 +1,27 @@ +<?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 new file mode 100644 index 0000000..37d115a --- /dev/null +++ b/srcs/wordpress/wp-includes/Requests/Exception/HTTP/305.php @@ -0,0 +1,27 @@ +<?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 new file mode 100644 index 0000000..743a4ed --- /dev/null +++ b/srcs/wordpress/wp-includes/Requests/Exception/HTTP/306.php @@ -0,0 +1,27 @@ +<?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 new file mode 100644 index 0000000..b3ad774 --- /dev/null +++ b/srcs/wordpress/wp-includes/Requests/Exception/HTTP/400.php @@ -0,0 +1,27 @@ +<?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 new file mode 100644 index 0000000..2e1e3d0 --- /dev/null +++ b/srcs/wordpress/wp-includes/Requests/Exception/HTTP/401.php @@ -0,0 +1,27 @@ +<?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 new file mode 100644 index 0000000..1d965d2 --- /dev/null +++ b/srcs/wordpress/wp-includes/Requests/Exception/HTTP/402.php @@ -0,0 +1,27 @@ +<?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 new file mode 100644 index 0000000..5ca3caf --- /dev/null +++ b/srcs/wordpress/wp-includes/Requests/Exception/HTTP/403.php @@ -0,0 +1,27 @@ +<?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 new file mode 100644 index 0000000..f08be2d --- /dev/null +++ b/srcs/wordpress/wp-includes/Requests/Exception/HTTP/404.php @@ -0,0 +1,27 @@ +<?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 new file mode 100644 index 0000000..b8419e1 --- /dev/null +++ b/srcs/wordpress/wp-includes/Requests/Exception/HTTP/405.php @@ -0,0 +1,27 @@ +<?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 new file mode 100644 index 0000000..09d0622 --- /dev/null +++ b/srcs/wordpress/wp-includes/Requests/Exception/HTTP/406.php @@ -0,0 +1,27 @@ +<?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 new file mode 100644 index 0000000..c21d1ec --- /dev/null +++ b/srcs/wordpress/wp-includes/Requests/Exception/HTTP/407.php @@ -0,0 +1,27 @@ +<?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 new file mode 100644 index 0000000..0691863 --- /dev/null +++ b/srcs/wordpress/wp-includes/Requests/Exception/HTTP/408.php @@ -0,0 +1,27 @@ +<?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 new file mode 100644 index 0000000..5a3e0d1 --- /dev/null +++ b/srcs/wordpress/wp-includes/Requests/Exception/HTTP/409.php @@ -0,0 +1,27 @@ +<?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 new file mode 100644 index 0000000..8eb3daf --- /dev/null +++ b/srcs/wordpress/wp-includes/Requests/Exception/HTTP/410.php @@ -0,0 +1,27 @@ +<?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 new file mode 100644 index 0000000..cee6496 --- /dev/null +++ b/srcs/wordpress/wp-includes/Requests/Exception/HTTP/411.php @@ -0,0 +1,27 @@ +<?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 new file mode 100644 index 0000000..e377d79 --- /dev/null +++ b/srcs/wordpress/wp-includes/Requests/Exception/HTTP/412.php @@ -0,0 +1,27 @@ +<?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 new file mode 100644 index 0000000..3b5fe27 --- /dev/null +++ b/srcs/wordpress/wp-includes/Requests/Exception/HTTP/413.php @@ -0,0 +1,27 @@ +<?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 new file mode 100644 index 0000000..14d5a59 --- /dev/null +++ b/srcs/wordpress/wp-includes/Requests/Exception/HTTP/414.php @@ -0,0 +1,27 @@ +<?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 new file mode 100644 index 0000000..32446c8 --- /dev/null +++ b/srcs/wordpress/wp-includes/Requests/Exception/HTTP/415.php @@ -0,0 +1,27 @@ +<?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 new file mode 100644 index 0000000..8c5f833 --- /dev/null +++ b/srcs/wordpress/wp-includes/Requests/Exception/HTTP/416.php @@ -0,0 +1,27 @@ +<?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 new file mode 100644 index 0000000..8807c71 --- /dev/null +++ b/srcs/wordpress/wp-includes/Requests/Exception/HTTP/417.php @@ -0,0 +1,27 @@ +<?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 new file mode 100644 index 0000000..d6af806 --- /dev/null +++ b/srcs/wordpress/wp-includes/Requests/Exception/HTTP/418.php @@ -0,0 +1,29 @@ +<?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 new file mode 100644 index 0000000..469e954 --- /dev/null +++ b/srcs/wordpress/wp-includes/Requests/Exception/HTTP/428.php @@ -0,0 +1,29 @@ +<?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 new file mode 100644 index 0000000..2a21fb3 --- /dev/null +++ b/srcs/wordpress/wp-includes/Requests/Exception/HTTP/429.php @@ -0,0 +1,29 @@ +<?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 new file mode 100644 index 0000000..ba1294e --- /dev/null +++ b/srcs/wordpress/wp-includes/Requests/Exception/HTTP/431.php @@ -0,0 +1,29 @@ +<?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 new file mode 100644 index 0000000..5165e35 --- /dev/null +++ b/srcs/wordpress/wp-includes/Requests/Exception/HTTP/500.php @@ -0,0 +1,27 @@ +<?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 new file mode 100644 index 0000000..3dd6946 --- /dev/null +++ b/srcs/wordpress/wp-includes/Requests/Exception/HTTP/501.php @@ -0,0 +1,27 @@ +<?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 new file mode 100644 index |
