PHPackages                             sumeko/http-exception - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [HTTP &amp; Networking](/categories/http)
4. /
5. sumeko/http-exception

ActiveLibrary[HTTP &amp; Networking](/categories/http)

sumeko/http-exception
=====================

HTTP Error Exceptions

1.1.0(10y ago)1127MITPHP

Since Jun 14Pushed 10y agoCompare

[ Source](https://github.com/sumeko/php-http-exception)[ Packagist](https://packagist.org/packages/sumeko/http-exception)[ RSS](/packages/sumeko-http-exception/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)DependenciesVersions (4)Used By (0)

HTTP Errors Exception
=====================

[](#http-errors-exception)

Features
--------

[](#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
```

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

2

Last Release

3991d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6c91f9abe527e5ec63e5736c7e48511ab69049c9519cc987bdb8be9a66049d6a?d=identicon)[nueko](/maintainers/nueko)

---

Top Contributors

[![sumeko](https://avatars.githubusercontent.com/u/36034171?v=4)](https://github.com/sumeko "sumeko (1 commits)")

### Embed Badge

![Health badge](/badges/sumeko-http-exception/health.svg)

```
[![Health](https://phpackages.com/badges/sumeko-http-exception/health.svg)](https://phpackages.com/packages/sumeko-http-exception)
```

###  Alternatives

[friendsofsymfony/rest-bundle

This Bundle provides various tools to rapidly develop RESTful API's with Symfony

2.8k73.3M319](/packages/friendsofsymfony-rest-bundle)[php-http/discovery

Finds and installs PSR-7, PSR-17, PSR-18 and HTTPlug implementations

1.3k309.5M1.2k](/packages/php-http-discovery)[pusher/pusher-php-server

Library for interacting with the Pusher REST API

1.5k94.8M293](/packages/pusher-pusher-php-server)[react/http

Event-driven, streaming HTTP client and server implementation for ReactPHP

78026.4M414](/packages/react-http)[php-http/curl-client

PSR-18 and HTTPlug Async client with cURL

48347.0M384](/packages/php-http-curl-client)[smi2/phpclickhouse

PHP ClickHouse Client

84310.1M71](/packages/smi2-phpclickhouse)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
