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(11y ago)1127MITPHP

Since Jun 14Pushed 11y 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 today

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 57% 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

4037d 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

[php-http/cache-plugin

PSR-6 Cache plugin for HTTPlug

25126.1M82](/packages/php-http-cache-plugin)[illuminate/http

The Illuminate Http package.

11937.9M6.9k](/packages/illuminate-http)[rdkafka/rdkafka

A PHP extension for Kafka

2.2k24.3k1](/packages/rdkafka-rdkafka)[httpsoft/http-message

Strict and fast implementation of PSR-7 and PSR-17

87965.9k114](/packages/httpsoft-http-message)[mezzio/mezzio-router

Router subcomponent for Mezzio

265.4M90](/packages/mezzio-mezzio-router)[serpapi/google-search-results-php

Get Google, Bing, Baidu, Ebay, Yahoo, Yandex, Home depot, Naver, Apple, Duckduckgo, Youtube search results via SerpApi.com

69127.2k](/packages/serpapi-google-search-results-php)

PHPackages © 2026

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