src/OAuth.php
public function validateResponse($url, $response)
	{
		if ($response->code != 200)
		{
			$error = htmlspecialchars($response->body);

			throw new \DomainException($error, $response->code);
		}
	}
public function validateResponse($url, $response)
	{
		if ($response->code != 200)
		{
			$error = htmlspecialchars($response->body);

			throw new \DomainException($error, $response->code);
		}
	}
Method to validate a response.

@param   string    $url       The request URL.
@param   Response  $response  The response to validate.

@return  void

@since   1.0
@throws  \DomainException