Requests_Exception_HTTP_418 WordPress Class
This class is used for handling HTTP 418 errors in the Requests library. HTTP 418 is the code for "I'm a teapot". It's a light-hearted error code used when a server receives a request to brew coffee when it's actually a teapot. This class can be used to handle this error in a more graceful way.
Requests_Exception_HTTP_418 #
Exception for 418 I’m A Teapot responses
Description
See also
Source
File: wp-includes/Requests/Exception/HTTP/418.php
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"; }
Expand full source codeCollapse full source codeView on TracView on GitHub