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

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

chubbyphp/chubbyphp-http-exception
==================================

Creates http exceptions which can be catched and converted to error responses.

1.3.2(4mo ago)026.5k—1.5%8MITPHPPHP ^8.3CI passing

Since Sep 18Pushed 4mo ago1 watchersCompare

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

READMEChangelogDependencies (6)Versions (8)Used By (8)

chubbyphp-http-exception
========================

[](#chubbyphp-http-exception)

[![CI](https://github.com/chubbyphp/chubbyphp-http-exception/actions/workflows/ci.yml/badge.svg)](https://github.com/chubbyphp/chubbyphp-http-exception/actions/workflows/ci.yml)[![Coverage Status](https://camo.githubusercontent.com/c0368760a4140419bab4a13bbc2d80429d9691b100abaf7c6032cc0f6f501e61/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f6368756262797068702f6368756262797068702d687474702d657863657074696f6e2f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/chubbyphp/chubbyphp-http-exception?branch=master)[![Mutation testing badge](https://camo.githubusercontent.com/04a09ddb5f38163c245b100fda5958fa99c088bdc27488082df4ed295faf1f8f/68747470733a2f2f696d672e736869656c64732e696f2f656e64706f696e743f7374796c653d666c61742675726c3d687474707325334125324625324662616467652d6170692e737472796b65722d6d757461746f722e696f2532466769746875622e636f6d2532466368756262797068702532466368756262797068702d687474702d657863657074696f6e2532466d6173746572)](https://dashboard.stryker-mutator.io/reports/github.com/chubbyphp/chubbyphp-http-exception/master)[![Latest Stable Version](https://camo.githubusercontent.com/a0f56c131978ec2639a2d2f26942ab203951d0fbc61a76ed19b1035602b5ffc4/68747470733a2f2f706f7365722e707567782e6f72672f6368756262797068702f6368756262797068702d687474702d657863657074696f6e2f76)](https://packagist.org/packages/chubbyphp/chubbyphp-http-exception)[![Total Downloads](https://camo.githubusercontent.com/679b80571fe774667fe3d03d8d0789d8f9a67284a34b62bdab3960a835f2f0bd/68747470733a2f2f706f7365722e707567782e6f72672f6368756262797068702f6368756262797068702d687474702d657863657074696f6e2f646f776e6c6f616473)](https://packagist.org/packages/chubbyphp/chubbyphp-http-exception)[![Monthly Downloads](https://camo.githubusercontent.com/07a8dd7a999d319a9adaf8fac65e02c50d86a0aff189f00020bee75c87e2f27d/68747470733a2f2f706f7365722e707567782e6f72672f6368756262797068702f6368756262797068702d687474702d657863657074696f6e2f642f6d6f6e74686c79)](https://packagist.org/packages/chubbyphp/chubbyphp-http-exception)

[![bugs](https://camo.githubusercontent.com/46a9d4e5db81cd73f755996a99de96c5198b1bf4cdc2d689352dc421cc80746d/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f6d6561737572653f70726f6a6563743d6368756262797068705f6368756262797068702d687474702d657863657074696f6e266d65747269633d62756773)](https://sonarcloud.io/dashboard?id=chubbyphp_chubbyphp-http-exception)[![code_smells](https://camo.githubusercontent.com/6a9d3b9786954190df1d7beeb9282c5a864334660b9cc05b60750846acd65b25/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f6d6561737572653f70726f6a6563743d6368756262797068705f6368756262797068702d687474702d657863657074696f6e266d65747269633d636f64655f736d656c6c73)](https://sonarcloud.io/dashboard?id=chubbyphp_chubbyphp-http-exception)[![coverage](https://camo.githubusercontent.com/21dd454bc3a4ca32de18d31329e8df8ab474db6f6fb2a0ee84ff3bb02eb53b5d/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f6d6561737572653f70726f6a6563743d6368756262797068705f6368756262797068702d687474702d657863657074696f6e266d65747269633d636f766572616765)](https://sonarcloud.io/dashboard?id=chubbyphp_chubbyphp-http-exception)[![duplicated_lines_density](https://camo.githubusercontent.com/d0ec7d4614a954944398f783c2eda07f13b36ff513b0e256287c0f09c9597dd9/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f6d6561737572653f70726f6a6563743d6368756262797068705f6368756262797068702d687474702d657863657074696f6e266d65747269633d6475706c6963617465645f6c696e65735f64656e73697479)](https://sonarcloud.io/dashboard?id=chubbyphp_chubbyphp-http-exception)[![ncloc](https://camo.githubusercontent.com/49525f641fba2f4a07400ce72cfd46b4dcb7968ed71dde7f1bb1f74bbf43e890/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f6d6561737572653f70726f6a6563743d6368756262797068705f6368756262797068702d687474702d657863657074696f6e266d65747269633d6e636c6f63)](https://sonarcloud.io/dashboard?id=chubbyphp_chubbyphp-http-exception)[![sqale_rating](https://camo.githubusercontent.com/f72c017de7f99b13b17b979cdb6312fbdb7a7cafbbfd31f7c1568620569f8662/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f6d6561737572653f70726f6a6563743d6368756262797068705f6368756262797068702d687474702d657863657074696f6e266d65747269633d7371616c655f726174696e67)](https://sonarcloud.io/dashboard?id=chubbyphp_chubbyphp-http-exception)[![alert_status](https://camo.githubusercontent.com/ba340792c121e648fb2951a7312592f6e2f351d81762ff35f25ac2f845723cd1/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f6d6561737572653f70726f6a6563743d6368756262797068705f6368756262797068702d687474702d657863657074696f6e266d65747269633d616c6572745f737461747573)](https://sonarcloud.io/dashboard?id=chubbyphp_chubbyphp-http-exception)[![reliability_rating](https://camo.githubusercontent.com/e199ec02215f87e5422b6aef87a9eb7490c8061e944c8417255b9430b6877a8b/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f6d6561737572653f70726f6a6563743d6368756262797068705f6368756262797068702d687474702d657863657074696f6e266d65747269633d72656c696162696c6974795f726174696e67)](https://sonarcloud.io/dashboard?id=chubbyphp_chubbyphp-http-exception)[![security_rating](https://camo.githubusercontent.com/74c7d0ea654141eb70230f773f216cdc9c29515b4ded01c7872c43f9eccb7ffd/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f6d6561737572653f70726f6a6563743d6368756262797068705f6368756262797068702d687474702d657863657074696f6e266d65747269633d73656375726974795f726174696e67)](https://sonarcloud.io/dashboard?id=chubbyphp_chubbyphp-http-exception)[![sqale_index](https://camo.githubusercontent.com/aa8562d2d5915152e9ae5ea19dcb4a2b917bb62231744051bb22ef8dde338960/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f6d6561737572653f70726f6a6563743d6368756262797068705f6368756262797068702d687474702d657863657074696f6e266d65747269633d7371616c655f696e646578)](https://sonarcloud.io/dashboard?id=chubbyphp_chubbyphp-http-exception)[![vulnerabilities](https://camo.githubusercontent.com/6fe2864d5d29d095b0b248749891c68dd55b7e7ca8aa18162c9d1526a97e8b3b/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f6d6561737572653f70726f6a6563743d6368756262797068705f6368756262797068702d687474702d657863657074696f6e266d65747269633d76756c6e65726162696c6974696573)](https://sonarcloud.io/dashboard?id=chubbyphp_chubbyphp-http-exception)

Description
-----------

[](#description)

Creates http exceptions which can be catched and converted to error responses.

Requirements
------------

[](#requirements)

- php: ^8.3

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

[](#installation)

Through [Composer](http://getcomposer.org) as [chubbyphp/chubbyphp-http-exception](https://packagist.org/packages/chubbyphp/chubbyphp-http-exception).

```
composer require chubbyphp/chubbyphp-http-exception "^1.3"
```

Usage
-----

[](#usage)

```
