This is a Symfony bundle implements the Libero API error standard (based on Problem Details for HTTP APIs).
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
.
- Report a bug or request a feature on GitHub.
- Ask a question on the Libero Community Slack.