Requests_Exception_HTTP_400 WordPress Class

The Requests_Exception_HTTP_400 class is used for handling HTTP 400 errors in the Requests WordPress plugin. HTTP 400 errors are usually caused by malformed or missing parameters in the request. This class will log the error and display a message to the user.

Requests_Exception_HTTP_400 #

Exception for 400 Bad Request responses


Source

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

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

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.