2017 © Pedro Peláez
 

library http-exception

HTTP Error Exceptions

image

sumeko/http-exception

HTTP Error Exceptions

  • Sunday, June 21, 2015
  • by nueko
  • Repository
  • 0 Watchers
  • 1 Stars
  • 74 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 1 % Grown

The README.md

HTTP Errors Exception

Features

  • HTTP status code
    /**
     * @var \Exception $e 
     */
    $e->getCode();
    // 502
  • HTTP status text
    /**
     * @var \Exception $e
     */
    $e->getMessage();
    // Bad Gateway
  • HTTP error explanation
    /**
     * @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.
  • HTTP error spec
    /**
     * @var \Exception $e
     */
    $e->getSpec();
    // RFC7231#6.6.3
  • HTTP error reference
    /**
     * @var \Exception $e
     */
    $e->getReference();
    // http://tools.ietf.org/html/rfc7231#section-6.6.3
  • HTTP status
    /**
     * @var \Exception $e
     */
    $e->getStatus() 
    // 502 Bad Gateway

The Versions

21/06 2015

dev-develop

dev-develop

HTTP Error Exceptions

  Sources   Download

MIT

by Sumeko

14/06 2015

dev-master

9999999-dev

HTTP Error Exceptions

  Sources   Download

MIT

by Sumeko

14/06 2015

1.1.0

1.1.0.0

HTTP Error Exceptions

  Sources   Download

MIT

by Sumeko

14/06 2015

v1.0

1.0.0.0

HTTP Error Exceptions

  Sources   Download

MIT

by Sumeko