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 today

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 18% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity44

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

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

[guzzlehttp/psr7

PSR-7 message implementation that also provides common utility methods

8.0k1.1B4.0k](/packages/guzzlehttp-psr7)[aws/aws-sdk-php

AWS SDK for PHP - Use Amazon Web Services in your PHP project

6.3k543.5M2.6k](/packages/aws-aws-sdk-php)[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k656.1k38](/packages/neuron-core-neuron-ai)[tempest/framework

The PHP framework that gets out of your way.

2.2k34.4k15](/packages/tempest-framework)[telnyx/telnyx-php

Official Telnyx PHP SDK — APIs for Voice, SMS, MMS, WhatsApp, Fax, SIP Trunking, Wireless IoT, Call Control, and more. Build global communications on Telnyx's private carrier-grade network.

35789.4k2](/packages/telnyx-telnyx-php)[laudis/neo4j-php-client

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

185702.8k43](/packages/laudis-neo4j-php-client)

PHPackages © 2026

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