Wallogit.com
2017 © Pedro Peláez
HTTP Error Exceptions
/**
* @var \Exception $e
*/
$e->getCode();
// 502
/**
* @var \Exception $e
*/
$e->getMessage();
// Bad Gateway
/**
* @var \Exception $e
*/
$e->getExplanation();
// Indicates that the server, while acting as a gateway or proxy, received an invalid response from an inbound server it accessed while attempting to fulfill the request.
/**
* @var \Exception $e
*/
$e->getSpec();
// RFC7231#6.6.3
/**
* @var \Exception $e
*/
$e->getReference();
// http://tools.ietf.org/html/rfc7231#section-6.6.3
/**
* @var \Exception $e
*/
$e->getStatus()
// 502 Bad Gateway