Requests_Exception_HTTP_401 WordPress Class

The HTTP_401 class is used to signal an HTTP 401 Unauthorized error. This exception is raised when a client tries to access a resource without providing the proper credentials.

Requests_Exception_HTTP_401 #

Exception for 401 Unauthorized responses


Source

File: wp-includes/Requests/Exception/HTTP/401.php

class Requests_Exception_HTTP_401 extends Requests_Exception_HTTP {
	/**
	 * HTTP status code
	 *
	 * @var integer
	 */
	protected $code = 401;

	/**
	 * Reason phrase
	 *
	 * @var string
	 */
	protected $reason = 'Unauthorized';
}

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.