Expand API Platform Hydra to return error code
A PHP \Exception can have a code
as 2nd parameter.
It would be great to use this code in the error body of a request result to be able to exactly tell what error happened without parsing the description text.
Something like: hydra:code
Example error (currently)
{
"@context": "/contexts/Error",
"@type": "hydra:Error",
"hydra:title": "An error occurred",
"hydra:description": "There are already check-ins at the location for the current user!",
}
Any thoughts @0875B5BD3EDB66A5, @987FCF504483CBC8, @euneuber?