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

Top ↑

See also


Top ↑

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";
}

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.