PHPackages                             faecie/json-api-error-response - 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. faecie/json-api-error-response

ActiveSymfony-bundle[HTTP &amp; Networking](/categories/http)

faecie/json-api-error-response
==============================

The Bundle provides en error response as it described in JsonApi specification

0.1.4(7y ago)42631[1 issues](https://github.com/faecie/json-api-error-response/issues)MITPHP

Since Nov 13Pushed 7y ago1 watchersCompare

[ Source](https://github.com/faecie/json-api-error-response)[ Packagist](https://packagist.org/packages/faecie/json-api-error-response)[ RSS](/packages/faecie-json-api-error-response/feed)WikiDiscussions master Synced 6d ago

READMEChangelogDependencies (4)Versions (6)Used By (0)

JsonApiErrorResponseBundle
==========================

[](#jsonapierrorresponsebundle)

[![Scrutinizer Code Quality](https://camo.githubusercontent.com/3fd81b56e3123bd290dff328b928139fc5cc6a6d8886fd402d3ceb7b5391215f/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6661656369652f6a736f6e2d6170692d6572726f722d726573706f6e73652f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/faecie/json-api-error-response/?branch=master)[![Code Coverage](https://camo.githubusercontent.com/8e04bc79b21397105caabc6047b6939f97166fe98fbd8d4b6ecd59ab0f357011/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6661656369652f6a736f6e2d6170692d6572726f722d726573706f6e73652f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/faecie/json-api-error-response/?branch=master)[![Build Status](https://camo.githubusercontent.com/d21c738ece7332171072fc1d65e7756cda82ce4705d915ac2d6a8d146cde8920/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6661656369652f6a736f6e2d6170692d6572726f722d726573706f6e73652f6261646765732f6275696c642e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/faecie/json-api-error-response/build-status/master)[![License](https://camo.githubusercontent.com/0d24579847edf6e5f76c7c7c5fd85458a897ab0b3c155b667a270a49e326ddac/68747470733a2f2f706f7365722e707567782e6f72672f6661656369652f6a736f6e2d6170692d6572726f722d726573706f6e73652f6c6963656e7365)](https://packagist.org/packages/faecie/json-api-error-response)

This bundle provides a way return [JSON:API](https://jsonapi.org/format/#errors) compatible error responses from REST endponts

Perfectly works along with FOS REST bundle configured to json response. OIn this case you will alway get response in a JSONAPI compatible format.

Installation
============

[](#installation)

```
$ composer require faecie/json-api-error-response ^0.1
```

Configuration
=============

[](#configuration)

You can configure the response of your exception in different ways:

1. Implement interface `DescriptiveExceptionInterface` on your exception with only one method returning the array of Error objects
2. Configure each exception class in the bandle configuration
3. Tag you service as `json_api.exception_describer` and implement `ExceptionDescriberInterface` on it with only one method allowing you to control how to serialize your exceptions

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance15

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity55

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

5

Last Release

2741d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/e6d8a6f2a2d6762dc5ada72fe057f2cf5de55fd0a091be917f76bac0f3bd10ce?d=identicon)[Faecie](/maintainers/Faecie)

---

Top Contributors

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

---

Tags

restjsonapiJmsSerializerfosrest

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/faecie-json-api-error-response/health.svg)

```
[![Health](https://phpackages.com/badges/faecie-json-api-error-response/health.svg)](https://phpackages.com/packages/faecie-json-api-error-response)
```

###  Alternatives

[nelmio/api-doc-bundle

Generates documentation for your REST API from attributes

2.3k63.6M233](/packages/nelmio-api-doc-bundle)[api-platform/core

Build a fully-featured hypermedia or GraphQL API in minutes!

2.6k48.1M236](/packages/api-platform-core)[api-platform/openapi

Models to build and serialize an OpenAPI specification.

353.3M48](/packages/api-platform-openapi)[api-platform/symfony

Symfony API Platform integration

323.2M67](/packages/api-platform-symfony)[api-platform/metadata

API Resource-oriented metadata attributes and factories

223.5M96](/packages/api-platform-metadata)[api-platform/state

API Platform state interfaces

223.4M57](/packages/api-platform-state)

PHPackages © 2026

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