PHPackages                             idiosyncratic/http-exceptions - 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. idiosyncratic/http-exceptions

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

idiosyncratic/http-exceptions
=============================

Exceptions for PSR HTTP Server Requests

0.9.1(6y ago)0131ISCPHPPHP &gt;=7.3

Since Nov 29Pushed 6y ago1 watchersCompare

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

READMEChangelogDependencies (2)Versions (3)Used By (1)

Idiosyncratic HTTP Exceptions
=============================

[](#idiosyncratic-http-exceptions)

Introduction
------------

[](#introduction)

A library providing Exception classes for HTTP Requests. HTTP Exceptions require the server request instance to facilitate advanced exception handlers to generate appropriate responses (for example, sending the correct content type in the response).

Installation
------------

[](#installation)

Use [Composer](https://getcomposer.org):

```
composer require idiosyncratic/http-exceptions

```

Usage
-----

[](#usage)

```
use Idiosyncratic\Http\Exception\Server\InternalServerError;

// $request must be an instance of Psr\Http\Message\ServerRequestInterface;
throw new InternalServerError($request);
```

You may also wrap a previous exception, just as with a regular Exception:

```
use Idiosyncratic\Http\Exception\Server\InternalServerError;

try {
    throw new \Exception('Something went wrong');
} catch (\Throwable $throwable) {
    // $request must be an instance of Psr\Http\Message\ServerRequestInterface;
    throw new InternalServerError($request, $throwable);
}
```

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

 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

2358d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/0995074b7e20d6f5efab38a8e956a12dbaf93f8ef3592d11c5d884d631f8658a?d=identicon)[jcsilkey](/maintainers/jcsilkey)

---

Top Contributors

[![jcsilkey](https://avatars.githubusercontent.com/u/1775194?v=4)](https://github.com/jcsilkey "jcsilkey (14 commits)")

### Embed Badge

![Health badge](/badges/idiosyncratic-http-exceptions/health.svg)

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

###  Alternatives

[league/uri-interfaces

Common tools for parsing and resolving RFC3987/RFC3986 URI

538204.9M23](/packages/league-uri-interfaces)[shopify/shopify-api

Shopify API Library for PHP

4634.8M16](/packages/shopify-shopify-api)[laudis/neo4j-php-client

Neo4j-PHP-Client is the most advanced PHP Client for Neo4j

184616.9k31](/packages/laudis-neo4j-php-client)[http-interop/response-sender

A function to convert PSR-7 Response to HTTP output

46711.5k40](/packages/http-interop-response-sender)[phpro/http-tools

HTTP tools for developing more consistent HTTP implementations.

28137.8k](/packages/phpro-http-tools)[mezzio/mezzio-authentication-oauth2

OAuth2 (server) authentication middleware for Mezzio and PSR-7 applications.

28483.0k2](/packages/mezzio-mezzio-authentication-oauth2)

PHPackages © 2026

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