PHPackages                             jtheuerkauf/php-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. jtheuerkauf/php-http-exception

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

jtheuerkauf/php-http-exception
==============================

A NON-PSR-7 library containing a set of RESTful HTTP exceptions that use a consistent interface.

1.0.5(2y ago)014[3 issues](https://github.com/jtheuerkauf/php-http-exception/issues)MITPHPPHP &gt;=7.0

Since May 2Pushed 3mo agoCompare

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

READMEChangelog (2)Dependencies (2)Versions (6)Used By (0)

Fuzz HTTP Exception
===================

[](#fuzz-http-exception)

A library containing a set of RESTful HTTP exceptions that use a consistent interface, built upon the ideas set by [symfony/http-kernel](https://github.com/symfony/http-kernel)

This code precedes the formation of inter-op standards, and is best suited for similar legacy code. You can use these classes to handle data you want to send back with semantically correct error messaging, but it's probably not the best solution for new projects.

This library *can* be used as error handling middleware, but it's *not recommended*. Most contemporary PHP frameworks implement the PSR-7 and PSR-15 standards for HTTP Messages and supporting middleware. As such, you'll be required to do some data juggling from Request/Response streams into "solid" data passed through the Exceptions.

Don't expect a lot of radical movement here - it's already an outdated design for handling HTTP errors, but it's small enough for me to learn about maintaining open libraries.

Usage
-----

[](#usage)

```
