This package is abandoned and no longer maintained. No replacement package was suggested.

Implements the Libero API error standard

Installs: 1 720

Dependents: 1

Suggesters: 1

Security: 0

Stars: 0

Watchers: 4

Forks: 2


v0.2.0 2019-02-20 11:12 UTC

This package is auto-updated.

Last update: 2020-01-20 13:20:52 UTC


Build Status

This is a Symfony bundle implements the Libero API error standard (based on Problem Details for HTTP APIs).

Getting started

Using Composer you can add the bundle as a dependency:

composer require libero/api-problem-bundle

If you're not using Symfony Flex, you'll need to enable the bundle in your application.

All exceptions are caught and turned into a application/problem+xml response.

To modify the contents of the response, you can listen for the libero.api_problem.create event.

Any remaining exceptions will be caught; unless the exception is an instance of Symfony's HttpExceptionInterface, the response will be 500 Internal Server Error.

Getting help