sumeko/http-exception

HTTP Error Exceptions

Installs: 127

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 0

Forks: 0

pkg:composer/sumeko/http-exception

1.1.0 2015-06-14 21:49 UTC

This package is not auto-updated.

Last update: 2025-09-27 22:59:42 UTC


README

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